From 96517be5daeb1843b8bb18addca53b05e332a741 Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Wed, 14 Nov 2001 12:40:30 +0000 Subject: [PATCH] So if this is array_key_exists, move this up to the right place in alphabetical order... git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@62401 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/array.xml | 76 ++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/functions/array.xml b/functions/array.xml index 8d4c5a9c6a..74d192a796 100644 --- a/functions/array.xml +++ b/functions/array.xml @@ -1,5 +1,5 @@ - + Array Functions Arrays @@ -570,6 +570,43 @@ $result = array_intersect ($array1, $array2); + + + array_key_exists + Checks if the given key or index exists in the array + + + Description + + + bool array_key_exists + mixed key + array search + + + + array_key_exists returns &true; if the + given key is set in the array. + key can be any value possible + for an array index. + + + + <function>array_key_exists</function> example + +$search_array = array("first" => 1, "second" => 4); +if (array_key_exists("first", $search_array)) { + echo "The 'first' element is in the array"; +} + + + + + See also isset. + + + + array_keys @@ -2555,43 +2592,6 @@ if (in_array(1.13, $a, TRUE)) - - - array_key_exists - Checks if the given key or index exists in the array - - - Description - - - bool array_key_exists - mixed key - array search - - - - array_key_exists returns &true; if the - given key is set in the array. - key can be any value possible - for an array index. - - - - <function>array_key_exists</function> example - -$search_array = array("first" => 1, "second" => 4); -if (array_key_exists("first", $search_array)) { - echo "The 'first' element is in the array"; -} - - - - - See also isset. - - - - krsort