note 33520 rejected from function.call-user-func by pollita

From: Date: Sun, 29 Jun 2003 00:12:30 +0000
Subject: note 33520 rejected from function.call-user-func by pollita
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-51158@lists.php.net to get a copy of this message
Note Submitter: ville.tapio@fountainpark.com ---- I haven't figured out a good way to call static class methods without knowing the name of the class. This doesn't work: Class Foo { function bar() {} } $class = 'Foo'; $class::bar(); Ugly workaround: Class Foo { function bar() {} } $class = 'Foo'; eval ($class . '::bar();');

« previous php.notes (#51158) next »