There are two ways to push an element to an array: array_push and $array[] =
The array_push is used like this:
$array = [1,2,3];
$newArraySize = array_push($array, 5, 6); // The method returns the new size of the array
print_r($array); // Array is passed by reference, therefore the original ar...