Well, I have dealed with global and const values. Figure out something like this:
<?
global $foo;
class MyClass{
const BAR = $foo;
...
Looks like this is not allowed, so I just want to know if is it valid code or is just a mistake in some assignation.
PS: I know that there are many ways to do what I am expecting, just want to discart this.