checking a string for numbers

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

 



Hi,

I'm trying to find a way of simply checking a string for numbers.

e.g.

if ($myVar contains a number)
{
 //numbers present
}
else
{
 //no numbers present
}

Thanks,

-- 
Jamie Saunders
Media Architect
phpdev@mediacdcards.net



-- 
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