Static properties, variable classnames and function calls

From: Date: Mon, 12 Jul 2010 23:27:58 +0000
Subject: Static properties, variable classnames and function calls
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969382018@lists.php.net to get a copy of this message
Hi, if I were to embark on the foolish quest of trying to clarify that * $whatever() calls a function where the name is called in $whatever. * new $whatever() creates the class which name is contained in $whatever. * new classname::$static_property() creates the class which name is contained in the $whatever static property of classname * classname::$static_property() however will first evaluate the variable in $static_property and call the named method in classname. While the first two has logic, this one is simply mind boggling. I would expect that the function name would be retreived from the property of the class but that's what's happening. where would that go? A new page under operators for function call operator? It's not exactly an operator but it's close enough to make my head hurt. Regards Karoly Negyesi

« previous php.doc (#969382018) next »