PHP Agregar elemento a la matriz Primera posición
<?php
$queue = array("orange", "banana");
array_unshift($queue, "apple", "raspberry");
print_r($queue);
?>
Array
(
[0] => apple
[1] => raspberry
[2] => orange
[3] => banana
)
Alberto Peripolli