I have a small sentence:
$sentence = "I have a Dog.";
$new_sentence = str_replace("Dog", "bird", $sentence );
Is there a way to have 2 or more str_replace() work in that same sentence?
I'm trying to replace "have" to "want". While at the same time replacing "Dog" with "bird".
Do I just need to do multiple str_replace() functions? Or is there a way to do it once?