Melinda Ralston thinks this is interesting: str_replace('a', 'b', 'a1a1a1', $a); From Strings and Patterns from Zend PHP 5 Certification Study Guide by Ben Ramsey, Davey Shafik Publisher: php[architect] Released: February 2015 Note $a should be by reference str_replace(‘a’, ‘b’, ‘a1a1a1’, &$a); Share this highlight http://learning.oreilly.com/a/zend-php-5/2434543/ Twitter Facebook Google Plus Email Get Instant Access Now Start a Free Trial Have an account? Sign in. Minimise Unlock the rest of Zend PHP 5 Certification Study Guide and 30,000 other books and videos By clicking this box, you confirm that you have read and agree to the terms and conditions of our Membership Agreement, and you understand that when your trial period ends, you will be required to provide billing information if you wish to continue using the service. Unlock the rest of this book Start a Free 10-Day Trial loading Learn about Safari for Business Have an account? Sign in.