foreach
| From: | Jo�o C�ndido de Souza Neto | Date: | Tue, 10 Oct 2006 18:14:25 +0000 |
| Subject: | foreach | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-242914@lists.php.net to get a copy of this message | ||
Hello.
In the follow code:
$numbers=array(1,2,3,4,5);
foreach ($numbers as number) {
...
}
Inside foreach, could i know if i am in the last element of the array
$numbers?
--
João Cândido de Souza Neto
Curitiba Online
joao@curitibaonline.com.br
(41) 3324-2294 (41) 9985-6894
http://www.curitibaonline.com.br