1 2 3 4 5 6 7
--TEST-- escapes in replace string --FILE-- <?php $a="abc123"; echo ereg_replace("123","def\\g\\\\hi\\",$a)?> --EXPECT-- abcdef\g\\hi\