简单教程
提交运行
代码编辑器:
<?php $a = array("Volvo"=>"XC90","BMW"=>"X5"); if (key_exists("Toyota",$a)) { echo "Key exists!"; } else { echo "Key does not exist!"; }
运行结果: