php解析url函数parse_url()

<?php
$url = 'https://www.notevm.com/index.php?s=php#top';
$arr = parse_url($url);
print_r($arr);

上面的代码会输出

Array
(
    [scheme] => https
    [host] => www.notevm.com
    [path] => /index.php
    [query] => s=php
    [fragment] => top
)
php解析url

原创文章,作者:小哆啦,如若转载,请注明出处:https://www.notevm.com/a/6199.html

(1)
小哆啦的头像小哆啦
上一篇 2022年6月14日 16:11
下一篇 2022年6月23日 19:50

相关推荐

发表回复

登录后才能评论