I know how to insert it to the end by:

$arr[] = $item;

But how to insert it to the beginning?

7 Answers
7

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *