简单教程
提交运行
代码编辑器:
<?php $fname = array("Peter","Ben","Joe"); $age = array("35","37","43"); $c = array_combine($fname,$age); print_r($c);
运行结果: