note 107574 deleted from language.functions by danbrown

From: Date: Thu, 10 May 2012 20:43:30 +0000
Subject: note 107574 deleted from language.functions by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187829@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- Updating my post below, this is a more elegant solution (instead of using "eval", use "call_user_func" for the intended result): <?php class foo { public static function bar(){ return "bar in a class called"; } } function bar() { return "normal bar called"; } $strFN = "bar"; echo $strFN(); $strFN2 = "foo::bar"; echo call_user_func($strFN2); ?>

« previous php.notes (#187829) next »