note 32821 rejected from language.pseudo-types by betz

From: Date: Sun, 08 Jun 2003 11:52:07 +0000
Subject: note 32821 rejected from language.pseudo-types by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-49976@lists.php.net to get a copy of this message
Note Submitter: sea@zzti.edu.cn ---- There are several mistakes in Example 7-11. Callback function examples it doesn't work,error_reporting: Fatal error: Call to undefined function: call_user_function() in..... It should be like this: Example 7-11. Callback function examples <?php // simple callback example function foobar() { echo "hello world!"; } call_user_func("foobar"); // method callback examples class foo { function bar() { echo "hello world!"; } } $foo = new foo; call_user_func(array($foo, "bar")); // object method call call_user_func(array("foo", "bar")); // static class method call ?>

« previous php.notes (#49976) next »