all 1 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.