str_replace
function call:
string str_replace( mixed $search, mixed $replace, mixed $subject [, int &$count ] )
description:
This function returns a string or an array with all occurrences of $search in $subject replaced with the given $replace value.
If you don't need fancy replacing rules (like regular expressions), you should always use this function instead of ereg_replace() or preg_replace().
test str_replace online:
string str_replace( mixed $search, mixed $replace, mixed $subject [, int &$count ] )
description:
This function returns a string or an array with all occurrences of $search in $subject replaced with the given $replace value.
If you don't need fancy replacing rules (like regular expressions), you should always use this function instead of ereg_replace() or preg_replace().
test str_replace online: