Searched refs:numberstring (Results 1 – 2 of 2) sorted by relevance
3129 function IsANumber($numberstring, $allowdecimal=false, $allownegative=false) { argument3130 for ($i = 0; $i < strlen($numberstring); $i++) {3131 if ((chr($numberstring{$i}) < chr('0')) || (chr($numberstring{$i}) > chr('9'))) {3132 if (($numberstring{$i} == '.') && $allowdecimal) {3134 } elseif (($numberstring{$i} == '-') && $allownegative && ($i == 0)) {
3745 * @param string $numberstring3751 public static function IsANumber($numberstring, $allowdecimal=false, $allownegative=false) { argument3752 for ($i = 0; $i < strlen($numberstring); $i++) {3753 if ((chr($numberstring[$i]) < chr('0')) || (chr($numberstring[$i]) > chr('9'))) {3754 if (($numberstring[$i] == '.') && $allowdecimal) {3756 } elseif (($numberstring[$i] == '-') && $allownegative && ($i == 0)) {