note 17826 deleted from function.split by jimw
| From: | jimw@php.net | Date: | Wed, 02 Jan 2002 01:48:10 +0000 |
| Subject: | note 17826 deleted from function.split by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24113@lists.php.net to get a copy of this message | ||
If the delimiter string is the first thing that occurs in your searched string, the first array
element returned will be empty, so
$i=0;
while($array[$i]) {
echo $array[$i];
$i++;
}
would fail on the first iteration. be sure to test on isset($array[$i]).