Re: Verifying a certain amount of numbers
| From: | Justin French | Date: | Wed, 16 Jul 2003 23:27:55 +0000 |
| Subject: | Re: Verifying a certain amount of numbers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155506@lists.php.net to get a copy of this message | ||
On Thursday, July 17, 2003, at 12:17 AM, Curt Zirzow wrote:
Excellent point! I find my self using regex's a bit to often when there are other solutions available. btw, have you ever tested the difference between if(ereg('^[0-9]{6}$',$str)) if(preg_grep('^[0-9]{6}$',$str)) I've been meaning to find out advantages/disadvantages with PERL vs. POSIX compatible.Hi, I haven't, but feel free to do your own :) Use the sample found on http://au.php.net/microtime Justin