On Jan 16, 1:18 pm, Michael <[email protected]> wrote:
> ($substr($w,1,1) == 3 || 4 || 6 || 7 || 9)
>
> This piece of code is not working - is there a way to achieve this?
Just in case you were wondering WHY this isn't working... its because
your if statement evaluates to the following in pseudocode:
If mychar is 3, OR
4 is not zero OR
6 is not zero OR
7 is not zero OR
9 is not zero
so obviously the test will always pass. I assume this was the "not
working" you observed.
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---