Hi there. Is it possible to make a "while" with a "else"-statement in PHP6? I know that it's not the first time this subject is up, but my research shows that a lot of people miss it. Including me.
Here's an example of what I mean: --------------------- <? $i = 1; while ($i <= 10) { echo $i++; } else { echo "The while couldn't be executed!"; } ?> --------------------- Python & Perl already have this function. So why not PHP? It could be very useful in an SQL query, if it doesn't return anything. Best Regards Pelle Ravn -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php