note 27999 added to keyword.paamayim-nekudotayim

From: Date: Sun, 29 Dec 2002 01:47:30 +0000
Subject: note 27999 added to keyword.paamayim-nekudotayim
Groups: php.notes 
Request: Send a blank email to php-notes+get-41406@lists.php.net to get a copy of this message
While the method described by robinv at ecosse dot net to call a method of an arbitrarily named function will work: eval("$classname::$methodname(\$param1,\$param2);"); There is another way to do so without using eval(): call_user_func(array($classname,$methodname),$param1,$param2); This will do the same thing without the performance hit of eval and without the added security concerns. -- http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php http://master.php.net/manage/user-notes.php?action=edit+27999 http://master.php.net/manage/user-notes.php?action=delete+27999 http://master.php.net/manage/user-notes.php?action=reject+27999

« previous php.notes (#41406) next »