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?")
Magento Code: Check an import directory for new product CSVs and process using a Magmi profile
Magento Code: Include currency switcher in the header or footer with Foundation mark-up