how to find a text inside a variable and replace by other in php code example
Example 1: php replace
str_replace ($search, $replace, $subject);
Example 2: replace all numbers in string php
$words = preg_replace('/[0-9]+/', '', $words);
str_replace ($search, $replace, $subject);
$words = preg_replace('/[0-9]+/', '', $words);