PHP array_push() Function

The array_push() function is used to add one or more elements onto the end of an array. The length of array increases by the number of variables pushed.The array_push() function inserts one or more elements to the end of an array.

Example -

Example -