php replace numbers in string code example
Example 1: php remove numbers from string
$words = preg_replace('/[0-9]+/', '', $words);
Example 2: replace all numbers in string php
$words = preg_replace('/[0-9]+/', '', $words);
$words = preg_replace('/[0-9]+/', '', $words);
$words = preg_replace('/[0-9]+/', '', $words);