Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php extract number from string without comma

$str = '- 602,135 results';
echo $result = preg_replace("/[^0-9]/","",$str);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #extract #number #string #comma
ADD COMMENT
Topic
Name
5+7 =