note 45770 added to about.notes

From: Date: Fri, 17 Sep 2004 21:12:16 +0000
Subject: note 45770 added to about.notes
Groups: php.notes 
Request: Send a blank email to php-notes+get-76896@lists.php.net to get a copy of this message
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; ?> ---- Manual Page -- http://www.php.net/manual/en/about.notes.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45770 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45770&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45770&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76896) next »