[thelist] PHP if exit Q

Marek Kilimajer kilimajer at webglobe.sk
Wed Aug 27 11:09:26 CDT 2003


Seems like I have problems sending email, I sent you this on php-general:

while( condition ) {

     // code here

     if( codition ) {

     } else {
         break;
     }

     // more code here

     break; // break at the end so while() becomes if()
}

Lets see if you get it.

jsWalter wrote:

>>-----Original Message-----
>>From: Kelly Hallman [mailto:khallman at wrack.org]
>>Sent: Tuesday, August 26, 2003 4:06 PM
>>To: thelist at lists.evolt.org
>>Cc: jsWalter at torres.ws
>>Subject: RE: [thelist] PHP if exit Q
> 
> 
>>do {
>>    if ($cond1) { ... } else { break; }
>>    if ($cond2) { ... } else { break; }
>>    ...
>>} while(0);
> 
> 
> duh!
> 
> Staring me right ion the face!
> 
> Thanks.
> 
> Walter
> 
> 



More information about the thelist mailing list