Carved in mystic runes upon the very living rock, the last words of
Marcel of comp.lang.php make plain:
Marcel wrote: >
> Does this work???? (i mean the || statement(s) in combination with
> a switch statement?
Sorry for being so lazy...... i figured it out myself....
So, it works!!!!
Testing is always the best way to get an answer to a question. But you
have to test thoroughly: as John Smith pointed out, this construction
will catch everything. You can see what's happening if you do this:
if ("02100" || "02700" || "02500") {
echo "True";
}
That expression will always evaluate to true. Your case statement then,
is just a long way of writing
case true:
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/