Validate numeric string
Posted on May 21, 2008, Filled under PHP,
Bookmark it
Check if a string is numeric or not.
<?php
function validate_number($string)
{
if(is_numeric($string))
{
return true;
}
else
{
return false;
}
}
?>
Do you wish to receive the latest updates as soon as they are posted? Get our RSS Feed or Subscribe to the Newsletter!
- May 21, 2008
- article by Gabriel C.
- Leave a reply!
Sponsors
Related Posts
-
Validate (input) usernameat August 29, 2008 with 2 comments
-
Validate (input) passwordat August 30, 2008 with 2 comments
-
Checking the beginning of a string (prefix)at August 30, 2008 with 1 comment
-
Format text into a SEO Friendly Stringat August 28, 2008 with 1 comment
