note 24351 added to functions

From: Date: Tue, 13 Aug 2002 21:26:39 +0000
Subject: note 24351 added to functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-34962@lists.php.net to get a copy of this message
Creating a function with the name 'function' won't turn up errors, but when calling that function, nothing will be returned. Example: <?php function(); function function () { print "Hello, world!"; } // "Hello, world!" will not be printed. ?> I assume this is because when calling 'function', php thinks you are trying to create a new function. -- http://www.php.net/manual/en/functions.php http://master.php.net/manage/user-notes.php?action=edit+24351 http://master.php.net/manage/user-notes.php?action=delete+24351 http://master.php.net/manage/user-notes.php?action=reject+24351

« previous php.notes (#34962) next »