in reply to Re^4: Conditional Elimination
in thread Conditional Elimination
Personally, I find:
much harder to understand thanif ($zipcode == 12345 || $zipcode == 55344 || $zipcode == ...) { code }
specially when it comes to better understanding of what the code is meant to accomplish.if (is_valid_zipcode($zipcode)) { code }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Conditional Elimination
by JavaFan (Canon) on Aug 31, 2011 at 12:13 UTC | |
by shawnhcorey (Friar) on Aug 31, 2011 at 14:24 UTC |