Apache + Slim installation Ran into syntax?

Anyone?

Result:
Parse error : syntax error, unexpected ‘$app’ (T_VARIABLE) in C:\Apache24\htdocs\myslimsite\index.php on line 5

The codes:

<?php require "vendor/autoload.php" $app = new Slim\App(); $app- >get("/",function(){ echo "Hello World"; }); $app- >run(); ?>

Hello:

Check if you are missing a “;” in your “first” line:

require "vendor/autoload.php";

Example Result:

require "vendor/autoload.php";

$app = new Slim\App();

$app->get("/", function() {
    echo "Hello World";
});

$app->run();