PHP array_combine

<?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 )
上一篇:PHP str_word_count


下一篇:PHP比较字符串