Just a simple question which Im sure I already know the answer to, but would like to confirm popped into my head.
In a PHP script, it doesn't matter what order you write your code in. Lets say, you can call a function on line 10, and define the function itself on line 20. Still, it will run the function instead of throwing an error saying that the function is undefined.
So, when running a php-script, does the server first read through all the content of the script and included files first, and then run through it once more to fire the events?