João Cândido de Souza Neto wrote:
Sure, maintain a count in the foreach and then compare to count($numbers)..but why not just use a for loop?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?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php