What happens when multiple instances of the search string overlap?
<? $tricky_string = "ABA is part of ABABA"; $maybe_tricked = str_replace("ABA", "DEF", $tricky_string); print("Substitution result is '$maybe_tricked'<BR>"); ?>