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_key_exists
array_key_exists

array_key_exists

(PHP 4 >= 4.1.0)

array_key_exists -- Prüft, ob ein Schlüssel in einem Array existiert

Beschreibung

bool array_key_exists ( mixed key, array search)

array_key_exists() gibt TRUE zurück, wenn key in dem Array vorhanden ist. key kann jeder für einen Array-Index mögliche Wert sein.

Beispiel 1. array_key_exists()

$search_array = array("erstes" => 1, "zweites" => 4);
if (array_key_exists("erstes", $search_array)) {
    echo "Das Element 'erstes' ist in dem Array vorhanden";
}

Anmerkung: Der Name dieser Funktion ist in PHP 4.0.6 key_exists().

Siehe auch isset().


© 1998-2007 Gold Vision Communications All Rights Reserved.