|
Posted by readmy on 10/30/06 12:25
In article <1162049614.155063.133380@f16g2000cwb.googlegroups.com>,
nc@iname.com says...
>
> You can do:
>
> if (in_array($somechar, array("a", "b", "d")))
>
> or
>
> if (strpos(' abd', $somechar) > 0)
>
> Cheers,
> NC
>
>
Still overly complex by comparison I think.
In Delphi:
if "x" in ['a'..'z']
quicker to type - prettier on the eye - no question about case
sensitivity needed, easier to understand on first glance ?
[Back to original message]
|