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

2007-02-07 Thread Jochem Maas
Richard Lynch wrote: > On Sat, February 3, 2007 10:55 am, Chilling Lounge Admin wrote: >> I need help with matching a variable. The variable would be e.g. 0-15 >> , 16-30 etc. and when the variable is equal to a certain range, it >> would echo an image. >> >> Does anyone know what function I should

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

2007-02-04 Thread Richard Lynch
On Sat, February 3, 2007 10:55 am, Chilling Lounge Admin wrote: > I need help with matching a variable. The variable would be e.g. 0-15 > , 16-30 etc. and when the variable is equal to a certain range, it > would echo an image. > > Does anyone know what function I should use? preg_match? > > The co

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

2007-02-03 Thread Myron Turner
Chilling Lounge Admin wrote: Hi. I need help with matching a variable. The variable would be e.g. 0-15 , 16-30 etc. and when the variable is equal to a certain range, it would echo an image. Does anyone know what function I should use? preg_match? The code would be something like if(preg_matc

[PHP] Help with matching numbers 0-100

2007-02-03 Thread Chilling Lounge Admin
Hi. I need help with matching a variable. The variable would be e.g. 0-15 , 16-30 etc. and when the variable is equal to a certain range, it would echo an image. Does anyone know what function I should use? preg_match? The code would be something like if(preg_match("[16-30]",$variable)) { echo