note 24993 added to functions
| From: | idontwant at spam dot com | Date: | Fri, 06 Sep 2002 22:16:23 +0000 |
| Subject: | note 24993 added to functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36274@lists.php.net to get a copy of this message | ||
It should be noted that calling a function that takes no parameters without using the parenthesis,
will not work and will not return any errors. For example:
function foo()
{
print("hi");
}
foo; /* will NOT work */
foo(); /* WILL work */
Took me about 15 minutes to figure this out as I stood at the screen and my page showed no content
at all.
--
http://www.php.net/manual/en/functions.php
http://master.php.net/manage/user-notes.php?action=edit+24993
http://master.php.net/manage/user-notes.php?action=delete+24993
http://master.php.net/manage/user-notes.php?action=reject+24993