Answers for "filter number from string using php"

PHP
1

php remove numbers from string

$words = preg_replace('/[0-9]+/', '', $words);
Posted by: Guest on September-25-2020
2

php filter only numbers

$output = preg_replace( '/[^0-9]/', '', $string );
Posted by: Guest on June-19-2020

Code answers related to "filter number from string using php"

Browse Popular Code Answers by Language