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
Use some regex like [0-9] or \d:
[0-9]
\d
$words = preg_replace('/\d+/', '', $words );
You might want to read the preg_replace() documentation as this is directly shown there.