PHP ~ get number only

$output = preg_replace ( '/[^0-9]/', '', $string );

reference
http://stackoverflow.com/questions/5474088/php-regular-expression-filter-number-only

沒有留言:

發佈留言