1. Home
  2. Php
  3. Array unshift

Adds a new item or items in front of an array.

#php
array_unshift($awesome_array, "new item");
copy
Full Php cheatsheet