Answers for "how to remove everything and keep just numbers in a string in php"

PHP
1

php remove numbers from string

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

Code answers related to "how to remove everything and keep just numbers in a string in php"

Browse Popular Code Answers by Language