Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

end

(PHP 3, PHP 4 , PHP 5)

end --  Positioniert den internen Zeiger eines Arrays auf dessen letztes Element

Beschreibung

mixed end ( array array)

end() rückt den internen Zeiger von array bis zum letzten Element vor, und gibt dieses Element zurück.

Beispiel 1. Ein einfaches end() Beispiel

<?php

  $fruits
= array('apple','banana','cranberry');
    
  print
end($fruits); // cranberry
      
?>

Siehe auch current(), each(), next() und reset().

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "PHP Handbuch". See Index Page for more info about Authorship and Copyright.

1999-2009 Linuxinfor.com. No rights reserved.