|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-12-02 18:56 UTC] sniper@php.net
[2002-12-02 19:27 UTC] francisf at videotron dot ca
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 06:00:01 2025 UTC |
$t1[] = "banana"; $t1[] = "orange"; $t1[] = "kiwi"; $t2[] = "car"; $t2[] = "kiwi"; $t2[] = "cat"; print "Kiwi key: ".array_search($t1,$t2); print "Car key: ".array_search("car",$t2); this code print: Kiwi key: Car key: 0 Should print: Kiwi key: 1 Car key: 0 Apache: 1.3.26 rh 6.2