Answers for "how to remove character in string numbers php"

PHP
1

php remove numbers from string

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

php remove characters not numbers or letters

$res = preg_replace("/[^a-zA-Z0-9\s]/", "", $string);
Posted by: Guest on October-02-2020

Code answers related to "how to remove character in string numbers php"

Browse Popular Code Answers by Language