源代码:
"red","b"=>"green","c"=>"blue"); echo array_search("red",$a); ?>
运行结果:
a