echo str_replace('f', 'jump', 'effffff');
$bodytag = str_replace("%body%", "black", "<body text='%body%'>");
echo $bodytag;
# 모음 제거
$vowels = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'];
$onlyconsonants = str_replace($vowels, '', 'Hello World of PHP');
echo $onlyconsonants;
$phrase = 'You should eat fruits, vegetables, and fiber every day.';
$healthy = ['fruits', 'vegetables', 'fiber'];
$yummy = ['pizza', 'beer', 'ice cream'];
$newphrase = str_replace($healthy, $yummy, $phrase);
echo $newphrase;
$str = str_replace('ll', '', 'good golly miss molly!', $count);
var_dump( $str ); # good goy miss moy!
var_dump( $count ); # replace 2회 수행됨