I need source code in PHP for check if a string is number using regular expression (not using is_numeric() function).
if (eregi(\'[0-9]{1,}\', $source)) { echo \'yes, its a number\'; } else { echo \'nop\'; }