public function push(array $array, $element): array
    {
        $elements = func_get_args();
        array_shift($elements);
        foreach ($elements as $element) {
            array_push($array, $element);
        }
        return $array;
    }
public function push(array $array, $element): array
    {
        $elements = func_get_args();
        array_shift($elements);
        foreach ($elements as $element) {
            array_push($array, $element);
        }
        return $array;
    }
public function push ( array $ array , $ element ) : array { $ elements = func_get_args ( ) ; array_shift ( $ elements ) ; foreach ( $ elements as $ element ) { array_push ( $ array , $ element ) ; } return $ array ; }
Insert one or more elements at the end of an array

Allows to push multiple elements at once::

Array.push(array, e1, e2)

@param array $array
@param mixed $element
@return array The array with the inserted elements
Insert one or more elements at the end of an array