DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php keep only numbers in string
$str = preg_replace('/[^0-9.]+/', '', $str);
PREVIOUS
NEXT
Tagged:
#php
#numbers
#string
ADD COMMENT
Topic
COMMENT
Name
2+3 =
Submit