Application/Uri.php
public static function parse($uri) {
		$uri = static::to(static::detectPathFrom(parse_url($uri, PHP_URL_PATH)));

		$query = array ();
		parse_str(parse_url($uri, PHP_URL_QUERY), $query);
		foreach ($query as $k => $v) {
			$uri->param($k, $v);
		}
		return $uri;
	}
public static function parse($uri) {
		$uri = static::to(static::detectPathFrom(parse_url($uri, PHP_URL_PATH)));

		$query = array ();
		parse_str(parse_url($uri, PHP_URL_QUERY), $query);
		foreach ($query as $k => $v) {
			$uri->param($k, $v);
		}
		return $uri;
	}
public static function parse ( $ uri ) { $ uri = static :: to ( static :: detectPathFrom ( parse_url ( $ uri , PHP_URL_PATH ) ) ) ; $ query = array ( ) ; parse_str ( parse_url ( $ uri , PHP_URL_QUERY ) , $ query ) ; foreach ( $ query as $ k => $ v ) { $ uri -> param ( $ k , $ v ) ; } return $ uri ; }
Parse an URI string

@param string $uri
@return Uri instance
Parse an URI string