Re: checking a string for numbers
| From: | Marco Tabini | Date: | Thu, 26 Jun 2003 12:44:25 +0000 |
| Subject: | Re: checking a string for numbers | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-28901@lists.php.net to get a copy of this message | ||
On Thu, 2003-06-26 at 08:09, CPT John W. Holmes wrote:
> if(preg_match('/[0-9]/',$myVar))
Same thing, fewer characters:
if (preg_match('/\d/', $myVar))
Marco