> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] (Richard) wrote:
>
> > Hi, I want to validate that a variable only contains numbers. I
> came up with
> > this code
>
I came up with this code:
is_numeric($var)
mark C.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Richard) wrote:
> Hi, I want to validate that a variable only contains numbers. I came up with
> this code
>
> $variable = "154545"; -> must give me true.
> $variable = "$%54545"; -> must give me false
> $variable = "$%54545"; -> must
2 matches
Mail list logo