Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29092 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37087 invoked by uid 1010); 28 Apr 2007 18:03:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 37072 invoked from network); 28 Apr 2007 18:03:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Apr 2007 18:03:56 -0000 Authentication-Results: pb1.pair.com header.from=PelleRR@it-college.dk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=PelleRR@it-college.dk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain it-college.dk from 217.61.208.8 cause and error) X-PHP-List-Original-Sender: PelleRR@it-college.dk X-Host-Fingerprint: 217.61.208.8 mail.grenats.dk Windows XP Pro SP1, 2000 SP3 Received: from [217.61.208.8] ([217.61.208.8:20856] helo=gtspost1.gts.dk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/A2-29267-98C83364 for ; Sat, 28 Apr 2007 14:03:56 -0400 Received: from gtspost1.gts.dk [217.61.208.8] by gtspost1.gts.dk with XWall v3.38k ; Sat, 28 Apr 2007 20:03:50 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Sat, 28 Apr 2007 20:03:38 +0200 Message-ID: <82F935820ADAF34089CFF7E6C49655B4013F3D48@GTSPOST1.gts.dk> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: While-else Thread-Index: AceJv4wWPtksJqkVTfWhvJAh5ARGag== To: X-CT-RefID: str=0001.0A090204.46338C84.0046,ss=1,fgs=0 Subject: While-else From: PelleRR@it-college.dk ("Pelle Ravn Rosfeldt") 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: --------------------- --------------------- 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