note 5482 deleted from function.strlen by alindeman

From: Date: Sun, 21 Apr 2002 20:51:58 +0000
Subject: note 5482 deleted from function.strlen by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-29655@lists.php.net to get a copy of this message
Bug or feature? I want to treat a string as an array ("traverse it") like this, and it gets me a warning about "illegal string index" when it reaches the end of the string. $tmp=0; $s="blah"; while($c=$s[$tmp++]) { echo $c; } This also spits warnings with "do {..} while(..)".

« previous php.notes (#29655) next »