note 77562 deleted from function.str-replace by nlopess

From: Date: Tue, 04 Sep 2007 10:00:51 +0000
Subject: note 77562 deleted from function.str-replace by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-130149@lists.php.net to get a copy of this message
Note Submitter: Stigg ---- 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.

« previous php.notes (#130149) next »