note 93879 added to function.preg-replace

From: Date: Mon, 05 Oct 2009 07:41:35 +0000
Subject: note 93879 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-161341@lists.php.net to get a copy of this message
@erezaton213 (oct 4th): your function is not necessary, as preg_replace already replaces all matches for the given search pattern. preg_replace("/a/","x", "abababab"), for instance, will yield "xbxbxbxb", not "xbababab". ---- Server IP: 213.249.64.162 Probable Submitter: 86.89.151.209 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- https://master.php.net/note/edit/93879 Del: integrated -- https://master.php.net/note/delete/93879/integrated Del: useless -- https://master.php.net/note/delete/93879/useless Del: bad code -- https://master.php.net/note/delete/93879/bad+code Del: spam -- https://master.php.net/note/delete/93879/spam Del: non-english -- https://master.php.net/note/delete/93879/non-english Del: in docs -- https://master.php.net/note/delete/93879/in+docs Del: other reasons-- https://master.php.net/note/delete/93879 Reject -- https://master.php.net/note/reject/93879 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161341) next »