本文实例讲述了PHP通过array_push()函数添加多个变量到数组末尾的方法。分享给大家供大家参考。具体分析如下:
PHP通过array_push()函数添加多个变量到数组末尾,array_push函数接受任意数量的变量添加。
PHP;">
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程序设计有所帮助。
原文链接:https://www.f2er.com/php/22374.html