Func array combine:修订历史

本页内容

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

    2022年8月17日 (星期三)

    • 当前之前 22:102022年8月17日 (三) 22:10Neo 讨论 贡献 1,312字节 +1,312 创建页面,内容为“{{DISPLAYTITLE:array_combine()}}5 = PHP array_combine() 函数 = 完整的 PHP Array 参考手册 通过合并两个数组来创建一个新数组,其中的一个数组元素为键名,另一个数组元素为键值: <sample title="" desc="" lang="php" hererun="1">example_start <?php $fname=array("Peter","Ben","Joe"); $age=array("35","37","43"); $c=array_combine($fname,$age); print_r($c); ?> exampl…”