Re: checking a string for numbers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux