note 34197 added to function.empty
| From: | richard at richard-sumilang dot com | Date: | Fri, 18 Jul 2003 03:20:49 +0000 |
| Subject: | note 34197 added to function.empty | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52312@lists.php.net to get a copy of this message | ||
This will error out in your code for some reason. I'm using PHP 4.3.2
function checkId($id){
$id=' ';
if(empty(trim($id)))
return NULL;
}
That's an example of what I have in my code and it doesn't seem to like it.
----
Manual Page -- http://www.php.net/manual/en/function.empty.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34197
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34197&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34197&report=yes