src/Library/HttpFundamental/Request.php
protected function _extractSegments(&$arguments)
    {
        if (is_string($arguments)) $this->_extractArguments($arguments);
        foreach ($arguments as $var=>$val) {
            if (empty($val) && strpos($var, '/')!==false) {
                $parts = explode('/', $var);
                unset($arguments[$var]);
                $index = null;
                foreach ($parts as $part) {
                    if (is_null($index)) {
                        $index = $part;
                    } else {
                        $arguments[$index] = $part;
                        $index = null;
                    }
                }
            }
        }
    }
protected function _extractSegments(&$arguments)
    {
        if (is_string($arguments)) $this->_extractArguments($arguments);
        foreach ($arguments as $var=>$val) {
            if (empty($val) && strpos($var, '/')!==false) {
                $parts = explode('/', $var);
                unset($arguments[$var]);
                $index = null;
                foreach ($parts as $part) {
                    if (is_null($index)) {
                        $index = $part;
                    } else {
                        $arguments[$index] = $part;
                        $index = null;
                    }
                }
            }
        }
    }
protected function _extractSegments ( & $ arguments ) { if ( is_string ( $ arguments ) ) $ this -> _extractArguments ( $ arguments ) ; foreach ( $ arguments as $ var => $ val ) { if ( empty ( $ val ) && strpos ( $ var , '/' ) !== false ) { $ parts = explode ( '/' , $ var ) ; unset ( $ arguments [ $ var ] ) ; $ index = null ; foreach ( $ parts as $ part ) { if ( is_null ( $ index ) ) { $ index = $ part ; } else { $ arguments [ $ index ] = $ part ; $ index = null ; } } } } }
Extract the table of "var=>val" arguments pairs from a slashed route

@param array|string $arguments (passed and transformed by reference)
Extract the table of var = > val arguments pairs from a slashed route