美文网首页
PHP学习汇总

PHP学习汇总

作者: Lusia_ | 来源:发表于2020-11-04 16:36 被阅读0次

    函数

    isset

    检测变量是否已设置并且非 NULL

    parse_url

    解析 URL,返回其组成部分

    $url = 'http://username:password@hostname/path?arg=value#anchor';
    print_r(parse_url($url));
    
    输出结果:
    Array
    (
        [scheme] => http
        [host] => hostname
        [user] => username
        [pass] => password
        [path] => /path
        [query] => arg=value
        [fragment] => anchor
    )
    

    相关文章

      网友评论

          本文标题:PHP学习汇总

          本文链接:https://www.haomeiwen.com/subject/uqbgvktx.html