src/Component/Json.php
/**
     * Removes the first element of a countable.
     *
     * @param ?string|int $index Pass null if you want to remove an element from the data root.
     * @return mixed The removed element's value.
     */
Removes the first element of a countable.
@param ?string|int $index Pass null if you want to remove an element from the data root.
@return mixed The removed element's value.
Removes the first element of a countable . @param ?string|int $index Pass null if you want to remove an element from the data root . @return mixed The removed element ' s value .
public function shift($index = null)
    {
        return $this->do(function (array $array) {
            return array_shift($array);
        }, $index, true);
    }
public function shift ( $ index = null ) { return $ this -> do ( function ( array $ array ) { return array_shift ( $ array ) ; } , $ index , true ) ; }
Removes the first element of a countable.
Removes the first element of a countable .