note 13747 added to functions.php
| From: | bart at framers dot nl | Date: | Sun, 01 Jul 2001 10:14:55 +0000 |
| Subject: | note 13747 added to functions.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14833@lists.php.net to get a copy of this message | ||
if ($somevar = yourfunction($somevar)) {
dosomething;
}
Seems to return "false" when yourfunction returns $somevar = "" or $somevar = 0.
This may seem logical. But I needed my function to return "true" as long as anything was
returned. Even the nothings... ;)
http://www.php.net/manual/en/functions.php