note 98034 deleted from control-structures.while by danbrown
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
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!';
}