Gold Vision Communications / USA
 GOLDVISION.COM
Serving the Multimedia Community since 1989.
German Site | Spanish Site 

 Web Hosting

 Virtual Dedicated Servers

 Domaincheck

 Order

 Order Status

 Support

 Contact us

 Download

 Network

 Network Status

 Webdesign / Templates

 Make Payment

 Terms & Conditions

 Imprint

 Legal Notices

 Privacy Statement
  PHP / array_shift
array_shift

array_shift

(PHP 4 )

array_shift --  Extrae un elemento del comienzo de la matriz

Descripción

mixed array_shift ( array matriz)

array_shift() extrae el primer valor de la matriz y lo devuele, acortando la matriz en un elemnto y moviendo todo hacia arriba.

Ejemplo 1. Ejemplo de array_shift()

$args = array ("-v", "-f");
$opcion = array_shift ($args);
Esto da como resultado que $args tenga como elemento restante "-f" y que $opcion valga "-v".

Vea también: array_unshift(), array_push(), y array_pop().

Nota: Esta función fue añadida en el PHP 4.0.


© 1998-2007 Gold Vision Communications All Rights Reserved.