note 41241 added to function.trim
| From: | arjini at mac dot com | Date: | Sun, 04 Apr 2004 00:10:50 +0000 |
| Subject: | note 41241 added to function.trim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67594@lists.php.net to get a copy of this message | ||
Bug or feature, you decide, but it seems specific to trim.
Works:
$match = trim($match);
if(!empty($match))
doSomething();
Parse Error:
if(!empty(trim($match)))
doSomething();
Had me baffled for a while.
----
Manual Page -- http://www.php.net/manual/en/function.trim.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41241
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41241&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41241&report=yes
Search -- http://master.php.net/manage/user-notes.php