Answers for "php extract number from string without comma"

PHP
0

php extract number from string without comma

$str = '- 602,135 results';
echo $result = preg_replace("/[^0-9]/","",$str);
Posted by: Guest on September-19-2021

Code answers related to "php extract number from string without comma"

Browse Popular Code Answers by Language