php
$url = "e.com/path/to/page.php?name=John";
$parsed_url = parse_url($url);
echo "Scheme: " . $parsed_url['scheme'] . "
"; echo "Host: " . $parsed_url['host'] . "
"; echo "Path: " . $parsed_url['path'] . "
"; echo "Query: " . $parsed_url['query'] . "
";
"; echo "Host: " . $parsed_url['host'] . "
"; echo "Path: " . $parsed_url['path'] . "
"; echo "Query: " . $parsed_url['query'] . "
";
顶一下
(0)
0%
踩一下
(0)
0%
- 相关评论
- 我要评论
-