<? $tricky_string = "ABA is part of ABABA"; $maybe_tricked = str_replace("ABA", "DEF", $tricky_string); print("Substitution result is '$maybe_tricked'<BR>"); ?>