PHParray_combine

阿童沐發表於2018-09-14
<?php
$fname=array(“Bill”,”Steve”,”Mark”);
$age=array(“60″,”56″,”31”);
$c=array_combine($fname,$age);
print_r($c);
?>
輸出Array ( [Bill] => 60 [Steve] => 56 [Mark] => 31 )