array_keys()b函数?
http://docs.php.net/manual/zh/function.array-keys.php
<br /> <?<br /> $x=array("1"=>"aa","2"=>"bb","3"=>"cc","4"=>"bb");<br /> $y1=array_keys($x,bb,false);<br /> $y2=array_keys($x,bb,true);<br /> print_r($x);<br /> print_r($y1);<br /> print_r($y2);<br /> ?><br />