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

 Web Hosting

 Virtual Dedicated Servers

 Chequeo de dominio

 Haga su pedido

 Estado del pedido

 Support

 Contáctenos

 Download

 Network

 Network Status

 Webdesign / Templates

 Efectuar pago

 Terms & Conditions

 Imprimir

 Notas Legales

 Declaración de Privacidad
  PHP / array_values
array_values

array_values

(PHP 4 )

array_values -- Liefert alle Werte eines Arrays

Beschreibung

array array_values ( array input)

array_values() liefert alle Werte des Arrays input.

Beispiel 1. array_values()

$array = array ("größe" => "XL", "farbe" => "gold");
print_r(array_values ($array));

Dies wird folgendes ausgeben:
Array
(
    [0] => XL
    [1] => gold
)

Anmerkung: Diese Funktion wurde in PHP 4 hinzugefügt, nachstehend findet sich eine Implementation für Benutzer von PHP 3.

Beispiel 2. Implementation von array_values() für PHP 3 Benutzer

function array_values ($arr) {
    $t = array();
    while (list($k, $v) = each ($arr)) {
        $t[] = $v;
    }
    return $t;
}

Siehe auch array_keys().


© 1998-2007 Gold Vision Communications All Rights Reserved.