note 75134 added to function.ereg-replace

From: Date: Mon, 14 May 2007 18:51:59 +0000
Subject: note 75134 added to function.ereg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-126581@lists.php.net to get a copy of this message
As notice, <?php ereg_replace("\\",$string1,$string2); ?> doesn't work. But <?php ereg_replace('\\',$string1,$string2); ?> doesn't work as well. (Note at single quotes) To have this working fine, I must to double escape: <?php ereg_replace("\\\\",$string1,$string2); ?> Or <?php ereg_replace('\\\\',$string1,$string2); ?> ---- Server IP: 200.185.126.110 Probable Submitter: 200.139.119.162 ---- Manual Page -- http://www.php.net/manual/en/function.ereg-replace.php Edit -- https://master.php.net/note/edit/75134 Del: integrated -- https://master.php.net/note/delete/75134/integrated Del: useless -- https://master.php.net/note/delete/75134/useless Del: bad code -- https://master.php.net/note/delete/75134/bad+code Del: spam -- https://master.php.net/note/delete/75134/spam Del: non-english -- https://master.php.net/note/delete/75134/non-english Del: in docs -- https://master.php.net/note/delete/75134/in+docs Del: other reasons-- https://master.php.net/note/delete/75134 Reject -- https://master.php.net/note/reject/75134 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126581) next »