Variable method names

php.internals

Jan Schneider

23 years ago
Is there a reason or is it a bug that the following code doesn't work anymore? class Foo { function bar() { echo "bar"; } } $method = "bar"; Foo::$method(); parse error, unexpected '(' Jan.
-- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft

Zeev Suraski

23 years ago
There is a reason, but it is a bug :) Zeev At 14:45 23/03/2003, Jan Schneider wrote: