PHP 5 class constants and subclasses
Another one of those ‘I wish PHP 5 did this…’ moments has occurred to me with class constants. The addition of constants is good but the problem is when it comes to subclassing. The code on the PHP 5 site: class Foo { const constant = “constant”; } echo “Foo::constant = ” . Foo::constant . …