I have two files:
index.php
$a = "a";
namespace.php
namespace tom\anderson\s;
include 'index.php';
echo \$a;
This does not work and outputs this error message: Parse error: syntax error, unexpected '$a' (T_VARIABLE), expecting identifier (T_STRING) in...
Why is this? Any references to official documentation would help!