According to the most programming languages scope rules, I can access variables that are defined outside of functions inside them, but in PHP for access to outside variable in function need bind (poin to variable) it with help key word "global". However, when I do same for outside constant, this doesn't work. Why doesn't this work? How to inside function get access to constant, what did be declare outside, in PHP?
php access global variable in function
php access global constant in function
php global constant in function