Warning: Your browser is very out-of-date. You should upgrade to a better browser.
All instances of $search are replaced with $replace in $subject.
// Will print to screen: "Why is the sky blue?". echo str_replace("red","blue","Why is the sky red?")