How to remove a number from a string in php code example Example: php remove numbers from string $words = preg_replace('/[0-9]+/', '', $words);