What would be the equivalent of public static final String str = "Foo"; in PHP?
I have a class like so:
class MyClass {
    public $TYPE_REGULAR = 'regular';
    public function display($type) {
        if($type===$this->TYPE_REGULAR) {
            return "This is a regular object";
        }
        return "This is not a regular object";
    }
}
In the above example, I don't want $TYPE_REGULAR to be a member property. I want it to be something like public static final String of Java.
Thanks.
 
     
     
    