note 98034 added to control-structures.while

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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!';
}
----
Server IP: 212.124.37.9
Probable Submitter: 84.58.45.240
----
Manual Page -- http://www.php.net/manual/en/control-structures.while.php
Edit        -- https://master.php.net/note/edit/98034
Del: integrated  -- https://master.php.net/note/delete/98034/integrated
Del: useless     -- https://master.php.net/note/delete/98034/useless
Del: bad code    -- https://master.php.net/note/delete/98034/bad+code
Del: spam        -- https://master.php.net/note/delete/98034/spam
Del: non-english -- https://master.php.net/note/delete/98034/non-english
Del: in docs     -- https://master.php.net/note/delete/98034/in+docs
Del: other reasons-- https://master.php.net/note/delete/98034
Reject      -- https://master.php.net/note/reject/98034
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.