RE: [PHP] Only numbers
| From: | WILSON, Nick | Date: | Mon, 06 Nov 2000 22:50:30 +0000 |
| Subject: | RE: [PHP] Only numbers | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-23999@lists.php.net to get a copy of this message | ||
if (preg_match("/[^0-9]+/", $string))
echo "This string does not contain numbers";
> -----Original Message-----
> From: Liam Gibbs [mailto:lgibbs@microlegend.com]
> Sent: Tuesday, 7 November 2000 10:42
> To: php-general@lists.php.net
> Subject: [PHP] Only numbers
>
>
> Is there a way that you can make sure a string contains only numbers?
>
> Liam Gibbs
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
>