note 50836 added to function.is-null
| From: | steve at howdymedia dot comRMV | Date: | Fri, 11 Mar 2005 07:05:33 +0000 |
| Subject: | note 50836 added to function.is-null | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-86236@lists.php.net to get a copy of this message | ||
I didn't see any reference to using '!' to invert this condition:
if (!is_null($string)) { do stuff }
Works well for me.
Steve
----
Manual Page -- http://www.php.net/manual/en/function.is-null.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50836
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50836&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50836&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50836&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50836&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50836&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50836&report=yes
Search -- http://master.php.net/manage/user-notes.php