parse_url
{parse_url url="http://username:password@hostname/path?arg=value#anchor" assign="parsed_url"} vrací: $parsed_url = Array ( [scheme] => http [host] => hostname [user] => username [pass] => password [path] => /path [query] => arg=value [fragment] => anchor )