static function GatherParams($url)
    {
        $reader = new StringReader($url);
        $param = '';
        $params = array();
        $start = false;
        while (false !== ($ch = $reader->ReadChar())) {
            if ($ch == '{') {
                $start = true;
            }
            else if ($ch == '}' && $start) {
                $params[] = $param;
                $param = '';
                $start = false;
            }
            else if ($start) {
                $param .= $ch;
            }
        }
        return $params;
    }
static function GatherParams($url)
    {
        $reader = new StringReader($url);
        $param = '';
        $params = array();
        $start = false;
        while (false !== ($ch = $reader->ReadChar())) {
            if ($ch == '{') {
                $start = true;
            }
            else if ($ch == '}' && $start) {
                $params[] = $param;
                $param = '';
                $start = false;
            }
            else if ($start) {
                $param .= $ch;
            }
        }
        return $params;
    }
static function GatherParams ( $ url ) { $ reader = new StringReader ( $ url ) ; $ param = '' ; $ params = array ( ) ; $ start = false ; while ( false !== ( $ ch = $ reader -> ReadChar ( ) ) ) { if ( $ ch == '{' ) { $ start = true ; } else if ( $ ch == '}' && $ start ) { $ params [ ] = $ param ; $ param = '' ; $ start = false ; } else if ( $ start ) { $ param .= $ ch ; } } return $ params ; }
Gathers the obligatory parameters from the url
@param string $url The page url
@return string[] Array of parameter names
Gathers the obligatory parameters from the url