Answers for "unshift in array"

0

array_unshift

$cola = array("naranja", "banana");
array_unshift($cola, "manzana", "frambuesa");
print_r($cola);

Array
(
    [0] => manzana
    [1] => frambuesa
    [2] => naranja
    [3] => banana
)
Posted by: Guest on June-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language