src/Control/HTTPRequest.php
public function shift($count = 1)
    {
        $return = array();

        if ($count == 1) {
            return array_shift($this->dirParts);
        }

        for ($i=0; $i<$count; $i++) {
            $value = array_shift($this->dirParts);

            if ($value === null) {
                break;
            }

            $return[] = $value;
        }

        return $return;
    }
public function shift($count = 1)
    {
        $return = array();

        if ($count == 1) {
            return array_shift($this->dirParts);
        }

        for ($i=0; $i<$count; $i++) {
            $value = array_shift($this->dirParts);

            if ($value === null) {
                break;
            }

            $return[] = $value;
        }

        return $return;
    }
public function shift ( $ count = 1 ) { $ return = array ( ) ; if ( $ count == 1 ) { return array_shift ( $ this -> dirParts ) ; } for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { $ value = array_shift ( $ this -> dirParts ) ; if ( $ value === null ) { break ; } $ return [ ] = $ value ; } return $ return ; }
Shift one or more parts off the beginning of the URL.
If you specify shifting more than 1 item off, then the items will be returned as an array

@param int $count Shift Count
@return string|array
Shift one or more parts off the beginning of the URL . If you specify shifting more than 1 item off then the items will be returned as an array