Parse error with php function : <p>I've been going through w3schools trying to get to grips with php. I've done a little Java and C++ in the past but nothing web side. I can't figure out why I'm getting a parse error</p>

<pre><code> &lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;

&lt;?php

// calling a variable can be done with $variable or . $Variable .
// php is loosely typed - you do not have to tell it that a var is a int or string etc


$color = "red"; //variables are case sensitive

echo "My car is " . $color . "&lt;br&gt;";


//scopes for vars are either local, global or static. Local are declared inside a function and global are declared outside a function

function myTest()
{
    $x = 5; //local scope
    echo "&lt;p&gt; Variable X inside function is: $x&lt;/p&gt;;
}


?&gt;

&lt;/body&gt;
&lt;/html&gt; 
</code></pre>

<p>This returns a "Parse error: syntax error, unexpected end of file in C:\inetpub\wwwroot\phpinfo.php on line 28"</p>

<p>This runs fine with the function removed. What am I missing? </p>
