replace a string with couple of strings in php code example
Example 1: replace all occurrence char in string php
$string = str_replace('search','replace',$string);
Example 2: replace all numbers in string php
$words = preg_replace('/[0-9]+/', '', $words);