note 101054 added to language.oop5

From: Date: Tue, 23 Nov 2010 17:46:45 +0000
Subject: note 101054 added to language.oop5
Groups: php.notes 
Request: Send a blank email to php-notes+get-174290@lists.php.net to get a copy of this message
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()")); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 128.249.1.194 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.php Edit -- https://master.php.net/note/edit/101054 Del: integrated -- https://master.php.net/note/delete/101054/integrated Del: useless -- https://master.php.net/note/delete/101054/useless Del: bad code -- https://master.php.net/note/delete/101054/bad+code Del: spam -- https://master.php.net/note/delete/101054/spam Del: non-english -- https://master.php.net/note/delete/101054/non-english Del: in docs -- https://master.php.net/note/delete/101054/in+docs Del: other reasons-- https://master.php.net/note/delete/101054 Reject -- https://master.php.net/note/reject/101054 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174290) next »