时间:2021-07-01 10:21:17 帮助过:4人阅读
php通过array_unshift函数添加多个变量到数组前端,函数返回添加后的数组元素个数
<?php $alpha = array("a", "b", "c"); $final = array_unshift($alpha, "d","e"); print "There are $total elements in \$alpha"; foreach ( $alpha as $val ) { print "$val
"; ?>
"; } print "
希望本文所述对大家的php程序设计有所帮助。