Hello all -
What's the best way to put an element onto the beginning of an array?
Currently the method I'm using is
$data = array_merge(
array("new first value"),
$data
);
Is there a better way?
What's the best way to put an element onto the beginning of an array?
Currently the method I'm using is
$data = array_merge(
array("new first value"),
$data
);
Is there a better way?
Comment