Re: solving the namespace conflict issues betweenfunction/staticmethod class constant/ns constant

From: Date: Mon, 29 Sep 2008 07:23:53 +0000
Subject: Re: solving the namespace conflict issues betweenfunction/staticmethod class constant/ns constant
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-40757@lists.php.net to get a copy of this message
String concatenation woun't be affected, because you can't concatenate class definitions like in my example. To concatenate you should use variables or strings/numbers. So I don't see any complications with that.
    MyNameSpace.SomeClass::_getInstance()->SomeDBClass->Query();
You're forgetting constants: define('MyNameSpace', 'Hi '); class SomeClass { function world() { return 'world'; }} MyNameSpace.SomeClass::world(); // Hi world Regards, Stan Vassilev

« previous php.internals (#40757) next »