str_replace($search,$replace,$subject)
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?")Ready to elevate your web project?
Whether you're launching a new site, strengthening security, or adding a new feature, I can help transform your vision into a high-performing online presence.