I read somewhere that PHP first parses a file and then executes it's code. If this is true, why can't variables be used before definition/declaration, like functions?
echo testFunction();
function testFunction(){
return "Hello ";
}
echo $testVar;
$testVar = "there!";
This code will print "Hello" and a notice, "Undefined variable: testVar".