note 32821 added to language.pseudo-types

From: Date: Sun, 08 Jun 2003 07:23:53 +0000
Subject: note 32821 added to language.pseudo-types
Groups: php.notes 
Request: Send a blank email to php-notes+get-49966@lists.php.net to get a copy of this message
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 ?> ---- Manual Page -- http://www.php.net/manual/en/language.pseudo-types.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32821 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32821&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32821&report=yes

« previous php.notes (#49966) next »