note 11887 deleted from function.call-user-func by felipe

From: Date: Sat, 29 Dec 2007 20:28:10 +0000
Subject: note 11887 deleted from function.call-user-func by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134196@lists.php.net to get a copy of this message
Note Submitter: dayiogluNOSPAM at metu dot edu dot tr dot NOSPAM ---- Happily call_user_func can now call methods of some existing objects; added to the CVS Fri Mar 9 18:09:26 2001 EDT. Below is an example: <?php class provider { function myfunction($x) { echo "burak was at $x\n"; } } class dispatcher { function process($p2,$p3) { call_user_func($p2, $p3); } } function independent() { echo "just a test"; } $x= new provider(); $y= new dispatcher(); $y->process(array($x,'myfunction'),"conference"); $y->process(independent,""); ?>

« previous php.notes (#134196) next »