PHP Array Push Syntax
The following is the syntax of the array_push() function, which inserts one or more elements at the end of an array:
- array: defines an input array
- val (Optional): one or more elements that we want to put in the array. In the syntax above, the list looks like this: $val1, $val2, ….