note 45770 deleted from about.notes by nlopess
| From: | nlopess@php.net | Date: | Sat, 18 Sep 2004 10:59:47 +0000 |
| Subject: | note 45770 deleted from about.notes by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76937@lists.php.net to get a copy of this message | ||
Note Submitter: sveta at microbecal dot com
----
Little changed example for array-search:
<?php
$array = array(0 => 'blue', 1 => 'red', 2 => 0x000000, 3 =>
'green', 4 => 'red');
$key = array_search('red', $array); // $key = 1;
$key = array_search('green', $array); // $key = 2; (0x000000 == 0 ==
'green')
$key = array_search('green', $array, true); // $key = 3;
?>