note 16342 added to function.array-search

From: Date: Thu, 25 Oct 2001 13:49:54 +0000
Subject: note 16342 added to function.array-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-19423@lists.php.net to get a copy of this message
A simple contribution for the Non-exixtent function array_search function array_search($searchfor,$inarray) { for($i=0;$i<count($inarray);$i++) { if($inarray[$i]==$searchfor) return true; } return false; } -- http://www.php.net/manual/en/function.array-search.php http://master.php.net/manage/user-notes.php?action=edit+16342 http://master.php.net/manage/user-notes.php?action=delete+16342 http://master.php.net/manage/user-notes.php?action=reject+16342

« previous php.notes (#19423) next »