PHP通过array_push()函数添加多个变量到数组末尾,array_push函数接受任意数量的变量添加。
/**
* PHP通过array_push()函数添加多个变量到数组末尾
*
* @param
* @arrange 512-笔记网: www.512Pic.com
**/
<?PHP
$alpha = array("a","b","c");
$final = array_push($alpha,"d","e");
print "There are $total elements in \$alpha<p>";
foreach ( $alpha as $val ) {
print "$val<br/>";
}
print "</p>";
?>
/*** 来自编程之家 jb51.cc(jb51.cc) ***/
原文链接:https://www.f2er.com/php/528456.html