1. Home
  2. Php
  3. Array unshift
#php

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

array_unshift($awesome_array, "new item");
copy
Full Php cheatsheet
Sitemap Git repository