Re: [PHP] if else while statement speed

2003-09-03 Thread Chris Sherwood
From: "Dan Anderson" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Wednesday, September 03, 2003 10:25 AM Subject: [PHP] if else while statement speed > I have a function where I have: > > while (something()) > { &

RE: [PHP] if else while statement speed

2003-09-03 Thread Jay Blanchard
[snip] http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] if else while statement speed

2003-09-03 Thread Dan Anderson
I have a function where I have: would it be quicker to do the above code or: if ($option1) { while(something()) { do_1(); } } elseif ($option2) { while (something()) { do_2(); } } // ... continue for 10 or more options... Thanks, Dan -- PHP General Mailing List (http://www.php.net