简单教程
提交运行
代码编辑器:
<?php $a=array("a"=>"red","b"=>"green","c"=>"blue"); echo array_search("red",$a);
运行结果: