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