显示下拉菜单

parse_url()

« parse_str | password_hash »
<?php
$mixed 
parse_url (
    
// string $url
    
?  // [int $component = -1]
);
?>
结果
$mixed = [
  
'host' => 'www.example.com',
  
'path' => '/path',
  
'query' => 'googleguy=googley',
]
示例
#1 parse_url  ("http://username:password@hostname/path?arg=value#anchor")
#2 parse_url  ("http://username:password@hostname/path?arg=value#anchor",
 
PHP_URL_PATH)
#3 parse_url  ("//www.example.com/path?googleguy=googley")
另请参阅
basename, dirname, http_build_query, parse_str, pathinfo