note 15083 deleted from function.end by philip
| From: | philip@php.net | Date: | Tue, 23 Apr 2002 21:52:55 +0000 |
| Subject: | note 15083 deleted from function.end by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29737@lists.php.net to get a copy of this message | ||
end comes in handy when dealing with arrays with gapped keys in loops.. ie:
while($i < end(array_keys($items))){
echo $items[$i]; }
since the array $items(0=>"hi", 4=>"hello"); makes the same loop using
count($items) unreliable