According to the most programming languages scope rules, I can access variables that are defined outside of functions inside them, but why doesn\'t this code work?
If you want, you can use the "define" function, but this function creates a constant which can't be changed once defined.
PHP Constants