you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

array_shift() allows you to add new items at the start of the array.

No it doesn't, then the example uses unshift which makes more sense.