note 14808 added to function.is-int.php
| From: | jimmydam at hotmail dot com | Date: | Wed, 15 Aug 2001 16:56:48 +0000 |
| Subject: | note 14808 added to function.is-int.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16756@lists.php.net to get a copy of this message | ||
Paul, wouldn't this work much better?
<?PHP
function fnStripNonNum($str){
$str=(string)$str;
$output = ereg_replace("[^0-9]","",$str);
return $output;
}
?>
http://www.php.net/manual/en/function.is-int.php