I know how to insert it to the end by:
$arr[] = $item;
But how to insert it to the beginning?
I know how to insert it to the end by:
$arr[] = $item;
But how to insert it to the beginning?
$arr = array('item2', 'item3', 'item4');
array_unshift($arr , 'item1');