Merhabalar… foreach komutunda ilk ve son elemanı bulmak için aşağıdaki kodu kullanabilirsiniz. [crayon-63ee5a758511e488616864/] alıntı: http://sitesbyjoe.com/posts/detail/2012/06/26/php-quickly-get-the-first-and-last-elements-of-a-foreach-loop