note 47470 deleted from function.call-user-func by sniper

From: Date: Wed, 22 Dec 2004 09:31:28 +0000
Subject: note 47470 deleted from function.call-user-func by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82168@lists.php.net to get a copy of this message
Note Submitter: bostjan dot skufca at domenca dot com ---- I couldn't find any simple list of available callback variations, so I made one. It is tested on PHP 4.3.9 only. If you need to call ordinary function: call_user_func('funcFoo'); If you need to call CLASS method (NOT object): call_user_func(array('classBar', 'methodFoo')); // case insensitive If you need to call OBJECT method: call_user_func(array($objectBar, 'methodFoo')); // case sensitive If you need to call method of object of object: call_user_func(array($objectBar->objectTor, 'methodFoo')); // case sensitive If you need to call object method from within the very same object (NOT CLASS!): call_user_func(array($this, 'methodFoo'));

« previous php.notes (#82168) next »