PHP uses the Array_unshift function to add multiple variables to the array front-end method, Array_unshift array
This example describes how PHP adds multiple variables to the front of the array through the Array_unshift function. Share to everyone for your reference. The specific analysis is as follows:
PHP adds multiple variables to the front of the array via the Array_unshift function, which returns the number of array elements added
<?php$alpha = Array ("A", "B", "C"), $final = Array_unshift ($alpha, "D", "E");p rint "There is $total elements in \ $alpha"; foreach ($alpha as $val) {print" $val
";} Print "
";? >
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/969487.html www.bkjia.com true http://www.bkjia.com/PHPjc/969487.html techarticle PHP uses the Array_unshift function to add multiple variables to the array front-end method, Array_unshift array This article describes the PHP array_unshift function to add multiple variables to the front of the array method ...