note 38760 added to function.array-search

From: Date: Tue, 06 Jan 2004 08:47:50 +0000
Subject: note 38760 added to function.array-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-62989@lists.php.net to get a copy of this message
Note that the description of the function prototype and the first example are contradictory and led me to confusion. Description says: array_search(mixed needle, array haystack [, bool strict]) But example says: array_search($array, "needle"); Arguments are reversed in the description. With PHP 4.1.2, the example's argument order works. ---- Manual Page -- http://www.php.net/manual/en/function.array-search.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38760 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38760&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38760&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#62989) next »