note 52164 deleted from function.array-search by betz
| From: | betz@php.net | Date: | Fri, 22 Apr 2005 20:12:13 +0000 |
| Subject: | note 52164 deleted from function.array-search by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-88423@lists.php.net to get a copy of this message | ||
Note Submitter: martin dot goldinger at netserver dot ch
Reason: useless
----
Example below will print 1, so the first key found will be returned and not an array with keys.
<?
$ar = array(0 => 'A', 1 => 'B', 2 => 'A', 3 =>
'B');
print array_search ('B', $ar);
?>