note 14083 added to function.empty.php
| From: | jhansle1 at coastal dot edu | Date: | Mon, 16 Jul 2001 19:53:09 +0000 |
| Subject: | note 14083 added to function.empty.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15447@lists.php.net to get a copy of this message | ||
It really isnt that useless if your trying to retrieve information from a db, and are checking to
see if there is blanks in the field, or a link. Like if you want to display two seperate statements.
example:
$site=$randomurl->URL;
if (!empty($site)) {
echo "<a class=layermenu href=\"$site\">Click Here</a>";
}
else { echo "Sorry, no site given"; }?>
http://www.php.net/manual/en/function.empty.php