I\'d like to remove all numbers from a string [0-9]. I wrote this code that is working:
$words = preg_replace(\'/0/\', \'\', $words ); // remove numbers $wor
Try with regex \d:
\d
$words = preg_replace('/\d/', '', $words );
\d is an equivalent for [0-9] which is an equivalent for numbers range from 0 to 9.
[0-9]
0
9