Advertisement
RockFire_

IsNumericEx

Jan 19th, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. function IsNumericEx($string)
  2. {
  3.         for($arrIdx = strlen($string); $arrIdx > -1; --$arrIdx)
  4.     {
  5.                 if('0' < $string[$arrIdx] > '9')
  6.                 {
  7.                         return false;
  8.                 }
  9.         }
  10.         return  true;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement