note 101054 deleted from language.oop5 by danbrown

From: Date: Tue, 23 Nov 2010 17:47:51 +0000
Subject: note 101054 deleted from language.oop5 by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-174291@lists.php.net to get a copy of this message
Note Submitter: Carl ---- In response to DavMe: There is a function called call_user_func. http://php.net/manual/en/function.call-user-func.php I've only used it with function parameters: call_user_func(array($class, $method), $params); but I believe it could be used like this <?php $className = "ClassName"; $instance = call_user_func(array($className, "GetInstance()")); ?>

« previous php.notes (#174291) next »