RE: [PHP] regular expressions ?
| From: | Jay Blanchard | Date: | Thu, 27 Jan 2005 14:38:25 +0000 |
| Subject: | RE: [PHP] regular expressions ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-207482@lists.php.net to get a copy of this message | ||
[snip]
I need to verify if $x is between 1 and 20 and i need to do that with
regular expressions ?
anyone can help me outta there ?
[/snip]
Why regex?
if((1 < $x) && ($x < 20)){
it's true
}