1. Home
  2. Php
  3. Push to array

Push a new item or items at the end of an array.

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