This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.
The function str_replace()
replaces all occurrences of the search string with the replacement string. It returns a string or an array with all occurrences of search
in subject
replaced with the given replace
value.
Format on PHP
str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] )
Example
// Provides: Hll Wrld f PHP
$vowels = array("a", "e", "i", "o", "u", "A", "E", "I", "O", "U");
$onlyconsonants = str_replace($vowels, "", "Hello World of PHP");