note 21860 added to function.empty
| From: | matthias at gestr dot de | Date: | Wed, 29 May 2002 15:29:43 +0000 |
| Subject: | note 21860 added to function.empty | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31154@lists.php.net to get a copy of this message | ||
It seems that empty() does not allow checking against methods like:
if (!empty($user->getNickname()))
I think it would be useful to check against the returning value of a method.
--
http://www.php.net/manual/en/function.empty.php
http://master.php.net/manage/user-notes.php?action=edit+21860
http://master.php.net/manage/user-notes.php?action=delete+21860
http://master.php.net/manage/user-notes.php?action=reject+21860