Solo quería agregar un nuevo parámetro al frente de mi matriz con array_unshift, pero: si lo hago como de costumbre, tiene un índice numérico. ¿Cómo puedo rechazar el índice, p. algo así ...PHP: Array_unshift no es un índice numérico
<?php
$queue = array("a", "B");
array_unshift($queue, "front" => "hello"); //Not working, this is my question ;)
?>
La matriz sería parecido a
Array {
front => hello
0 => a
1 => B
}
Muchas gracias;) funciona! –