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

 
 

 

end

(PHP 3, PHP 4 , PHP 5)

end --  Sposta il puntatore interno dell'array all'ultimo elemento

Descrizione

mixed end ( array array)

end() fa avanzare il puntatore di array all'ultimo elemento, e restituisce il suo valore.

Esempio 1. Un semplice esempio di end()

<?php

$frutti
= array('mela', 'banana', 'mirtillo');
echo
end($frutti); // mirtillo
      
?>

Vedere anche current(), each(), prev(), next() e reset().

 
 
 
 
Google
  Web Linuxinfor   
 

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

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

1999-2009 Linuxinfor.com. No rights reserved.