DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+7 =
Submit