Ed Curtis wrote:
I've been looking at the docs and found preg_match and preg_match_all but
these functions only seem to match 1 specific search item. I want to make
sure a variable (say $mlsnumber) contains only numbers and no spaces. What
would I use to accomplish this?
Thanks
Ed
You really don't need a regex for this....
Can it be a float?
is_numeric()
http://us4.php.net/is_numeric
Only a float?
is_float()
http://us4.php.net/is_float
Only an integer?
is_int()
http://us4.php.net/is_int
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@xxxxxxxxxxxx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php