Doc #55263 [Opn->Wfx]: array-key-exists description uses "$key, $search" not "$needle, $haystack"

From: Date: Wed, 17 Aug 2011 13:34:59 +0000
Subject: Doc #55263 [Opn->Wfx]: array-key-exists description uses "$key, $search" not "$needle, $haystack"
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7029@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55263&edit=1 ID: 55263 Updated by: bjori@php.net Reported by: jambroo at gmail dot com Summary: array-key-exists description uses "$key, $search" not "$needle, $haystack" -Status: Open +Status: Wont fix Type: Documentation Problem Package: Documentation problem PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: Its quite intentionally not $needle $haystack, as that implies searching in its values. The function checks if a key exists - the whole name, not a subset of it the string or anything along those lines. Previous Comments: ------------------------------------------------------------------------ [2011-07-21 19:37:40] jambroo at gmail dot com Description: ------------ It would be greate for the method description to read: "bool array_key_exists ( mixed $needle , array $haystack )" instead of "bool array_key_exists ( mixed $key , array $search )" Similar to: "string strstr ( string $haystack , mixed $needle [, bool $before_needle = false ] )" "mixed array_search ( mixed $needle , array $haystack [, bool $strict = false ] )" "string strrchr ( string $haystack , mixed $needle )" Thanks! --- From manual page: http://www.php.net/function.array-key-exists%23Description --- ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55263&edit=1

« previous php.doc.bugs (#7029) next »