note 98034 deleted from control-structures.while by danbrown
| From: | danbrown@php.net | Date: | Fri, 21 May 2010 16:07:58 +0000 |
| Subject: | note 98034 deleted from control-structures.while by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169504@lists.php.net to get a copy of this message | ||
Note Submitter: Bachsau
----
If you need a while....else, just get your statement into a var, then check it via if:
while ($data = something())
{
echo 'Doing the loop!';
}
if (!data)
{
echo 'Nothing to loop!';
}