--- Liam Gibbs <[EMAIL PROTECTED]> wrote: > Is it just as quick to do: > > if($r == 0) { > } else if($r != 0) { > } > > than to do: > > if($r == 0) { > } else { > }
No. It is (almost) the difference between two conditionals versus one. Both are fast, however, and you will find it hard to measure the difference unless you have many instances of this. If you're concerned about performance, you should also use notation such as if (!$r) instead of if($r == 0). If you're concerned about readability, consider a comment near your else statement that explains what condition fits there. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php