News Feed
Jobs Feed
Sections




News Archive
Richard Miller's Blog:
PHP needs a while-else statement
February 20, 2006 @ 07:39:24

In this latest entry on his blog, Richard Miller suggests that PHP needs a "while-else statement".

I think PHP ought to have a while-else statement. There is, of course, a while statement and an if-else statement, but a while() else statement would be perfect for returning a bunch of rows from a MySQL database.

There's a sample query that he gives that loops through the results from a SQL query to see if any of them match.

0 comments voice your opinion now!
while-else statement loop SQL results while-else statement loop SQL results


blog comments powered by Disqus

Similar Posts

Maggie Nelson's Blog: NTILE() - easy way to generate tag clouds

Paul Jones' Blog: Solar 0.27.0 and 0.27.1 Released

SitePoint PHP Blog: PHP ZH Round One

John Walsh's Blog: PHP Benchmark - For vs While

Raphael Stolt's Blog: Transforming data centered XML into SQL statements


Community Events









Don't see your event here?
Let us know!


podcast framework object database unittest development release tool example opinion interview api composer community zendframework2 phpunit code language introduction testing

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework