note 77562 added to function.str-replace

From: Date: Tue, 04 Sep 2007 00:19:25 +0000
Subject: note 77562 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-130144@lists.php.net to get a copy of this message
Correction 2: while (!($pos = strpos($string, $victim, $pos)) === FALSE){ Should be: while (!(($pos = strpos($string, $victim, $pos)) === FALSE)){ Then it works when $victim is at the 0 position. ---- Server IP: 208.69.120.35 Probable Submitter: 69.141.126.93 ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- https://master.php.net/note/edit/77562 Del: integrated -- https://master.php.net/note/delete/77562/integrated Del: useless -- https://master.php.net/note/delete/77562/useless Del: bad code -- https://master.php.net/note/delete/77562/bad+code Del: spam -- https://master.php.net/note/delete/77562/spam Del: non-english -- https://master.php.net/note/delete/77562/non-english Del: in docs -- https://master.php.net/note/delete/77562/in+docs Del: other reasons-- https://master.php.net/note/delete/77562 Reject -- https://master.php.net/note/reject/77562 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130144) next »