PHP通过array_unshift函数添加多个变量到数组前端,函数返回添加后的数组元素个数
/**
* PHP通过array_unshift函数添加多个变量到数组
*
* @param
* @arrange 512-笔记网: www.512Pic.com
**/
<?PHP
$alpha = array("a","b","c");
$final = array_unshift($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/528430.html