Re: [PHP] Re: Help with matching numbers 0-100

2007-02-07 Thread Jochem Maas
frank wrote: > better make a switch statement: with case such as > switch($x): that should be : switch (true) { // bla } otherwise you would be testing the boolean cast of the value of $x against the result of the expression given in the case statement ... in practice it would probably d

[PHP] Re: Help with matching numbers 0-100

2007-02-03 Thread frank
better make a switch statement: with case such as switch($x): case ($x >= 16 && $x <= 30): break; case set* ""Chilling Lounge Admin"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi. > > I need help with matching a variable. The variable would be e.g. 0-15 > , 16