首页 > 后端开发 > php教程 > php解析cas返回的xml

php解析cas返回的xml

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-06-23 14:01:21
原创
1406 人浏览过

    使用php进行cas验证时,对方返回这么一段xml

<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>    <cas:authenticationSuccess>        <cas:user>zhangjian</cas:user>        <cas:language></cas:language>    </cas:authenticationSuccess></cas:serviceResponse>
登录后复制


于是使用php相关函数进行解析
$str = <<authenticationSuccess[0];var_dump($successnode);*/$xml = new DOMDocument();$xml -> loadXML($str);var_dump($xml);
登录后复制


结果都解析不出来,哪位朋友遇到过请指点下,不甚感激!!!


回复讨论(解决方案)

SimpleXML也是PHP5后提供的一套简单易用的xml工具集,
不过它不适用于包含namespace(命名空间)的xml。

怎么会?

<?php$str = <<<EOT&lt;cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'&gt;    &lt;cas:authenticationSuccess&gt;        &lt;cas:user&gt;zhangjian&lt;/cas:user&gt;        &lt;cas:language&gt;&lt;/cas:language&gt;    &lt;/cas:authenticationSuccess&gt;&lt;/cas:serviceResponse&gt;EOT;  $validateXML = simplexml_load_string($str, null, 0, 'cas', true);print_r($validateXML);$successnode = $validateXML->authenticationSuccess[0];print_r($successnode); $xml = new DOMDocument();$xml -> loadXML($str);print_r($xml);</pre><div class="contentsignin">登录后复制</div></div>  <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class='brush:php;toolbar:false;'>SimpleXMLElement Object(    [authenticationSuccess] =&gt; SimpleXMLElement Object        (            [user] =&gt; zhangjian            [language] =&gt; SimpleXMLElement Object                (                )        ))SimpleXMLElement Object(    [user] =&gt; zhangjian    [language] =&gt; SimpleXMLElement Object        (        ))DOMDocument Object(    [doctype] =&gt;     [implementation] =&gt; (object value omitted)    [documentElement] =&gt; (object value omitted)    [actualEncoding] =&gt;     [encoding] =&gt;     [xmlEncoding] =&gt;     [standalone] =&gt; 1    [xmlStandalone] =&gt; 1    [version] =&gt; 1.0    [xmlVersion] =&gt; 1.0    [strictErrorChecking] =&gt; 1    [documentURI] =&gt; file:///D:/AMP/web/    [config] =&gt;     [formatOutput] =&gt;     [validateOnParse] =&gt;     [resolveExternals] =&gt;     [preserveWhiteSpace] =&gt; 1    [recover] =&gt;     [substituteEntities] =&gt;     [nodeName] =&gt; #document    [nodeValue] =&gt;     [nodeType] =&gt; 9    [parentNode] =&gt;     [childNodes] =&gt; (object value omitted)    [firstChild] =&gt; (object value omitted)    [lastChild] =&gt; (object value omitted)    [previousSibling] =&gt;     [attributes] =&gt;     [ownerDocument] =&gt;     [namespaceURI] =&gt;     [prefix] =&gt;     [localName] =&gt;     [baseURI] =&gt; file:///D:/AMP/web/    [textContent] =&gt;             zhangjian            )</pre><div class="contentsignin">登录后复制</div></div> </p> <p class="sougouAnswer">  谢谢唠叨大大,刚刚使用一个方法解决了,不过没有大大的好  <br />  <br />  <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class='brush:php;toolbar:false;'>$str = <<<EOT&lt;cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'&gt;    &lt;cas:authenticationSuccess&gt;        &lt;cas:user&gt;zhangjian&lt;/cas:user&gt;        &lt;cas:language&gt;&lt;/cas:language&gt;    &lt;/cas:authenticationSuccess&gt;&lt;/cas:serviceResponse&gt;EOT;$str = str_replace('cas:', '', $str);$validateXML = simplexml_load_string($str);$successnode = $validateXML->authenticationSuccess[0];echo (string)$successnode->user;</pre><div class="contentsignin">登录后复制</div></div> </p>                </div>
            </div>
            <div style="display: flex;">
                                <div class="wzconBq" style="display: inline-flex;">
                    <span>相关标签:</span>
                    <div class="wzcbqd">
                        <a onclick="hits_log(2,'www',this);" href-data="https://www.php.cn/zh/search?word=php解析cas返回的xml" target="_blank">php解析cas返回的xml</a>                    </div>
                </div>
                
                <!--                 <div style="display: inline-flex;float: right; color:#333333;">来源:php.cn</div>
                 -->
            </div>
            <div class="wzconOtherwz">
                                    <a href="https://www.php.cn/zh/faq/260807.html" title="PHP类继承,有关构造函数">
                        <span>上一篇:PHP类继承,有关构造函数</span>
                    </a>
                                    <a href="https://www.php.cn/zh/faq/260809.html"  title="关于浏览器标签显示为文章标题的问题">
                        <span>下一篇:关于浏览器标签显示为文章标题的问题</span>
                    </a>
                            </div>
            <div class="wzconShengming">
       
                <div class="bzsmdiv">本站声明</div>
                <div>本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn</div>
            </div>
            <ins class="adsbygoogle"
     style="display:block"
     data-ad-format="autorelaxed"
     data-ad-client="ca-pub-5902227090019525"
     data-ad-slot="2507867629"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
                    <div class="wzconZzwz">
                <div class="wzconZzwztitle">作者最新文章</div>
                <ul>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796771332.html">LLM的工作方式:培训前训练,神经网络,幻觉和推理</a>
                            </div>
                            <div>2025-02-26 03:58:14</div>
                        </li>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796771322.html">我将区块链和AI组合在一起以生成艺术。接下来发生了什么。</a>
                            </div>
                            <div>2025-02-26 03:38:10</div>
                        </li>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796771315.html">高级及时工程:思想链(COT)</a>
                            </div>
                            <div>2025-02-26 03:17:10</div>
                        </li>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796771302.html">在Sqlite中检索增强发电</a>
                            </div>
                            <div>2025-02-26 02:49:09</div>
                        </li>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796771274.html">如何使用LLM驱动的样板构建自己的节点。JSAPI</a>
                            </div>
                            <div>2025-02-26 01:08:13</div>
                        </li>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796771258.html">2024年编码的LLM:价格,性能和争取最佳的战斗</a>
                            </div>
                            <div>2025-02-26 00:46:10</div>
                        </li>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796771227.html">提示视觉语言模型</a>
                            </div>
                            <div>2025-02-25 23:42:08</div>
                        </li>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796771219.html">如何衡量大语模型的响应的可靠性</a>
                            </div>
                            <div>2025-02-25 22:50:13</div>
                        </li>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796771209.html">生活的幻想</a>
                            </div>
                            <div>2025-02-25 21:54:11</div>
                        </li>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796771201.html">科学家对大型语言模型的认真反映了人类思维</a>
                            </div>
                            <div>2025-02-25 20:45:11</div>
                        </li>
                                    </ul>
            </div>
        

        
        
        <div class="wzconZzwz">
                <div class="wzconZzwztitle">最新问题</div>
                <ul>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796781655.html">PHP中的名称空间是什么?为什么它们有用?</a>
                            </div>
                            <div>2025-03-19 14:08:27</div>
                        </li>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796781654.html">PHP中的特征是什么?他们如何促进代码重用?</a>
                            </div>
                            <div>2025-03-19 14:07:29</div>
                        </li>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796781653.html">PHP中的界面是什么?它们与抽象课程有何不同?</a>
                            </div>
                            <div>2025-03-19 14:06:28</div>
                        </li>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796781652.html">解释PHP中抽象类和方法的目的。</a>
                            </div>
                            <div>2025-03-19 14:05:31</div>
                        </li>
                                            <li>
                            <div class="wzczzwzli">
                                <span class="layui-badge-dots"></span>
                                <a target="_blank" href="https://www.php.cn/zh/faq/1796781651.html">静态和非静态方法有什么区别?</a>
                            </div>
                            <div>2025-03-19 14:04:29</div>
                        </li>
                                    </ul>
            </div>



            <div class="wzconZt" >
                <div class="wzczt-title">
                    <div>相关专题</div>
                    <a href="https://www.php.cn/zh/faq/zt" target="_blank">更多>
                    </a>
                </div>
                <div class="wzcttlist">
                    <ul>
                                                <li class="ul-li">
                            <a target="_blank" href="https://www.php.cn/zh/faq/linuxckcpkj"><img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/subject/202407/22/2024072214412417030.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" alt="linux查看磁盘空间" /> </a>
                            <a target="_blank" href="https://www.php.cn/zh/faq/linuxckcpkj" class="title-a-spanl" title="linux查看磁盘空间"><span>linux查看磁盘空间</span> </a>
                        </li>
                                                <li class="ul-li">
                            <a target="_blank" href="https://www.php.cn/zh/faq/phpzzyqszosxd"><img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/subject/202407/22/2024072213215439173.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" alt="php中怎样求数组偶数项的和" /> </a>
                            <a target="_blank" href="https://www.php.cn/zh/faq/phpzzyqszosxd" class="title-a-spanl" title="php中怎样求数组偶数项的和"><span>php中怎样求数组偶数项的和</span> </a>
                        </li>
                                                <li class="ul-li">
                            <a target="_blank" href="https://www.php.cn/zh/faq/pdfssmgs"><img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/subject/202407/22/2024072214095912727.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" alt="pdf是什么格式" /> </a>
                            <a target="_blank" href="https://www.php.cn/zh/faq/pdfssmgs" class="title-a-spanl" title="pdf是什么格式"><span>pdf是什么格式</span> </a>
                        </li>
                                                <li class="ul-li">
                            <a target="_blank" href="https://www.php.cn/zh/faq/jklxjs"><img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/subject/202407/22/2024072213341623919.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" alt="接口类型介绍" /> </a>
                            <a target="_blank" href="https://www.php.cn/zh/faq/jklxjs" class="title-a-spanl" title="接口类型介绍"><span>接口类型介绍</span> </a>
                        </li>
                                                <li class="ul-li">
                            <a target="_blank" href="https://www.php.cn/zh/faq/geforce940mx"><img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/subject/202407/22/2024072214364078160.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" alt="显卡GeForce 940MX" /> </a>
                            <a target="_blank" href="https://www.php.cn/zh/faq/geforce940mx" class="title-a-spanl" title="显卡GeForce 940MX"><span>显卡GeForce 940MX</span> </a>
                        </li>
                                                <li class="ul-li">
                            <a target="_blank" href="https://www.php.cn/zh/faq/parsererror"><img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/subject/202407/22/2024072213370949121.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" alt="parsererror错误怎么解决" /> </a>
                            <a target="_blank" href="https://www.php.cn/zh/faq/parsererror" class="title-a-spanl" title="parsererror错误怎么解决"><span>parsererror错误怎么解决</span> </a>
                        </li>
                                                <li class="ul-li">
                            <a target="_blank" href="https://www.php.cn/zh/faq/pycharmzdwjff"><img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/subject/202407/22/2024072212074752669.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" alt="pycharm找到文件方法" /> </a>
                            <a target="_blank" href="https://www.php.cn/zh/faq/pycharmzdwjff" class="title-a-spanl" title="pycharm找到文件方法"><span>pycharm找到文件方法</span> </a>
                        </li>
                                                <li class="ul-li">
                            <a target="_blank" href="https://www.php.cn/zh/faq/pgsjmmawjlzmj"><img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/subject/202407/22/2024072212340926071.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" alt="苹果手机密码锁忘记了怎么解开" /> </a>
                            <a target="_blank" href="https://www.php.cn/zh/faq/pgsjmmawjlzmj" class="title-a-spanl" title="苹果手机密码锁忘记了怎么解开"><span>苹果手机密码锁忘记了怎么解开</span> </a>
                        </li>
                                                <li class="ul-li">
                            <a target="_blank" href="https://www.php.cn/zh/faq/zmgbdk"><img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/subject/202407/22/2024072213443642461.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" alt="怎么关闭135 445端口" /> </a>
                            <a target="_blank" href="https://www.php.cn/zh/faq/zmgbdk" class="title-a-spanl" title="怎么关闭135 445端口"><span>怎么关闭135 445端口</span> </a>
                        </li>
                                            </ul>
                </div>
            </div>
        </div>
    </div>

    <div class="phpwzright">
    <ins class="adsbygoogle"
        style="display:block"
        data-ad-client="ca-pub-5902227090019525"
        data-ad-slot="3653428331"
        data-ad-format="auto"
        data-full-width-responsive="true"></ins>
    <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
        <div class="wzrOne">
            <div class="wzroTitle">热门推荐</div>
            <div class="wzroList">
                <ul>
                                                <li>
                                <div class="wzczzwzli">
                                    <span class="layui-badge-dots wzrolr"></span>
                                    <a style="height: auto;" title="Mac电脑设置hosts的方法(图文步骤)" href="https://www.php.cn/zh/faq/448310.html">Mac电脑设置hosts的方法(图文步骤)</a>
                                </div>
                            </li>
                                                <li>
                                <div class="wzczzwzli">
                                    <span class="layui-badge-dots wzrolr"></span>
                                    <a style="height: auto;" title="PHP快速搭建一个简单的QQ机器人" href="https://www.php.cn/zh/faq/448391.html">PHP快速搭建一个简单的QQ机器人</a>
                                </div>
                            </li>
                                                <li>
                                <div class="wzczzwzli">
                                    <span class="layui-badge-dots wzrolr"></span>
                                    <a style="height: auto;" title="API常用签名验证方法(PHP实现)" href="https://www.php.cn/zh/faq/448286.html">API常用签名验证方法(PHP实现)</a>
                                </div>
                            </li>
                                                <li>
                                <div class="wzczzwzli">
                                    <span class="layui-badge-dots wzrolr"></span>
                                    <a style="height: auto;" title="PHP常用日期时间操作合集" href="https://www.php.cn/zh/faq/448309.html">PHP常用日期时间操作合集</a>
                                </div>
                            </li>
                                                <li>
                                <div class="wzczzwzli">
                                    <span class="layui-badge-dots wzrolr"></span>
                                    <a style="height: auto;" title="PHP生成图形验证码(加强干扰型)" href="https://www.php.cn/zh/faq/448308.html">PHP生成图形验证码(加强干扰型)</a>
                                </div>
                            </li>
                                    </ul>
            </div>
        </div>
        <script src="https://sw.php.cn/hezuo/cac1399ab368127f9b113b14eb3316d0.js" type="text/javascript"></script>
        <div class="wzrThree">
            <div class="wzrthree-title">
                <div>热门教程</div>
                <a target="_blank" href="https://www.php.cn/zh/course.html">更多>
                </a>
            </div>
            <div class="wzrthreelist swiper2">
                <div class="wzrthreeTab  swiper-wrapper">
                    <div class="check tabdiv swiper-slide" data-id="one">相关教程 <div></div></div>
                    <div class="tabdiv swiper-slide" data-id="two">热门推荐<div></div></div>
                    <div class="tabdiv swiper-slide" data-id="three">最新课程<div></div></div>
                </div>
                <ul class="one">
                                                <li>
                                <a target="_blank" href="https://www.php.cn/zh/course/812.html" title="最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)" class="wzrthreelaimg">
                                    <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/041/620debc3eab3f377.jpg" alt="最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)"/>
                                </a>
                                <div class="wzrthree-right">
                                    <a target="_blank" title="最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)" href="https://www.php.cn/zh/course/812.html">最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)</a>
                                    <div class="wzrthreerb">
                                        <div>1438410 <b class="kclbcollectb"></b></div>
                                     
                                                                                    <div class="courseICollection" data-id="812">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                            </div>
                                </div>
                            </li>
                                                <li>
                                <a target="_blank" href="https://www.php.cn/zh/course/74.html" title="php入门教程之一周学会PHP" class="wzrthreelaimg">
                                    <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/068/6253d1e28ef5c345.png" alt="php入门教程之一周学会PHP"/>
                                </a>
                                <div class="wzrthree-right">
                                    <a target="_blank" title="php入门教程之一周学会PHP" href="https://www.php.cn/zh/course/74.html">php入门教程之一周学会PHP</a>
                                    <div class="wzrthreerb">
                                        <div>4299328 <b class="kclbcollectb"></b></div>
                                     
                                                                                    <div class="courseICollection" data-id="74">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                            </div>
                                </div>
                            </li>
                                                <li>
                                <a target="_blank" href="https://www.php.cn/zh/course/286.html" title="JAVA 初级入门视频教程" class="wzrthreelaimg">
                                    <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/068/62590a2bacfd9379.png" alt="JAVA 初级入门视频教程"/>
                                </a>
                                <div class="wzrthree-right">
                                    <a target="_blank" title="JAVA 初级入门视频教程" href="https://www.php.cn/zh/course/286.html">JAVA 初级入门视频教程</a>
                                    <div class="wzrthreerb">
                                        <div>2674716 <b class="kclbcollectb"></b></div>
                                     
                                                                                    <div class="courseICollection" data-id="286">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                            </div>
                                </div>
                            </li>
                                                <li>
                                <a target="_blank" href="https://www.php.cn/zh/course/504.html" title="小甲鱼零基础入门学习Python视频教程" class="wzrthreelaimg">
                                    <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/068/62590a67ce3a6655.png" alt="小甲鱼零基础入门学习Python视频教程"/>
                                </a>
                                <div class="wzrthree-right">
                                    <a target="_blank" title="小甲鱼零基础入门学习Python视频教程" href="https://www.php.cn/zh/course/504.html">小甲鱼零基础入门学习Python视频教程</a>
                                    <div class="wzrthreerb">
                                        <div>517486 <b class="kclbcollectb"></b></div>
                                     
                                                                                    <div class="courseICollection" data-id="504">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                            </div>
                                </div>
                            </li>
                                                <li>
                                <a target="_blank" href="https://www.php.cn/zh/course/2.html" title="PHP 零基础入门教程" class="wzrthreelaimg">
                                    <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/068/6253de27bc161468.png" alt="PHP 零基础入门教程"/>
                                </a>
                                <div class="wzrthree-right">
                                    <a target="_blank" title="PHP 零基础入门教程" href="https://www.php.cn/zh/course/2.html">PHP 零基础入门教程</a>
                                    <div class="wzrthreerb">
                                        <div>878643 <b class="kclbcollectb"></b></div>
                                     
                                                                                    <div class="courseICollection" data-id="2">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                            </div>
                                </div>
                            </li>
                                    </ul>
                <ul class="two" style="display: none;">
                                            <li>
                            <a target="_blank" href="https://www.php.cn/zh/course/812.html" title="最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)" class="wzrthreelaimg">
                                <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/041/620debc3eab3f377.jpg" alt="最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)"/>
                            </a>
                            <div class="wzrthree-right">
                                <a target="_blank" title="最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)" href="https://www.php.cn/zh/course/812.html">最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)</a>
                                <div class="wzrthreerb">
                                    <div >1438410次学习</div>
                                                                                <div class="courseICollection" data-id="812">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                        </div>
                            </div>
                        </li>
                                            <li>
                            <a target="_blank" href="https://www.php.cn/zh/course/286.html" title="JAVA 初级入门视频教程" class="wzrthreelaimg">
                                <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/068/62590a2bacfd9379.png" alt="JAVA 初级入门视频教程"/>
                            </a>
                            <div class="wzrthree-right">
                                <a target="_blank" title="JAVA 初级入门视频教程" href="https://www.php.cn/zh/course/286.html">JAVA 初级入门视频教程</a>
                                <div class="wzrthreerb">
                                    <div >2674716次学习</div>
                                                                                <div class="courseICollection" data-id="286">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                        </div>
                            </div>
                        </li>
                                            <li>
                            <a target="_blank" href="https://www.php.cn/zh/course/504.html" title="小甲鱼零基础入门学习Python视频教程" class="wzrthreelaimg">
                                <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/068/62590a67ce3a6655.png" alt="小甲鱼零基础入门学习Python视频教程"/>
                            </a>
                            <div class="wzrthree-right">
                                <a target="_blank" title="小甲鱼零基础入门学习Python视频教程" href="https://www.php.cn/zh/course/504.html">小甲鱼零基础入门学习Python视频教程</a>
                                <div class="wzrthreerb">
                                    <div >517486次学习</div>
                                                                                <div class="courseICollection" data-id="504">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                        </div>
                            </div>
                        </li>
                                            <li>
                            <a target="_blank" href="https://www.php.cn/zh/course/901.html" title="Web前端开发极速入门" class="wzrthreelaimg">
                                <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/067/64be28a53a4f6310.png" alt="Web前端开发极速入门"/>
                            </a>
                            <div class="wzrthree-right">
                                <a target="_blank" title="Web前端开发极速入门" href="https://www.php.cn/zh/course/901.html">Web前端开发极速入门</a>
                                <div class="wzrthreerb">
                                    <div >217195次学习</div>
                                                                                <div class="courseICollection" data-id="901">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                        </div>
                            </div>
                        </li>
                                            <li>
                            <a target="_blank" href="https://www.php.cn/zh/course/234.html" title="零基础精通 PS 视频教程" class="wzrthreelaimg">
                                <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/068/62611f57ed0d4840.jpg" alt="零基础精通 PS 视频教程"/>
                            </a>
                            <div class="wzrthree-right">
                                <a target="_blank" title="零基础精通 PS 视频教程" href="https://www.php.cn/zh/course/234.html">零基础精通 PS 视频教程</a>
                                <div class="wzrthreerb">
                                    <div >923450次学习</div>
                                                                                <div class="courseICollection" data-id="234">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                        </div>
                            </div>
                        </li>
                                    </ul>
                <ul class="three" style="display: none;">
                                            <li>
                            <a target="_blank" href="https://www.php.cn/zh/course/1648.html" title="【web前端】Node.js快速入门" class="wzrthreelaimg">
                                <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/067/662b5d34ba7c0227.png" alt="【web前端】Node.js快速入门"/>
                            </a>
                            <div class="wzrthree-right">
                                <a target="_blank" title="【web前端】Node.js快速入门" href="https://www.php.cn/zh/course/1648.html">【web前端】Node.js快速入门</a>
                                <div class="wzrthreerb">
                                    <div >9888次学习</div>
                                                                                <div class="courseICollection" data-id="1648">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                        </div>
                            </div>
                        </li>
                                            <li>
                            <a target="_blank" href="https://www.php.cn/zh/course/1647.html" title="国外Web开发全栈课程全集" class="wzrthreelaimg">
                                <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/067/6628cc96e310c937.png" alt="国外Web开发全栈课程全集"/>
                            </a>
                            <div class="wzrthree-right">
                                <a target="_blank" title="国外Web开发全栈课程全集" href="https://www.php.cn/zh/course/1647.html">国外Web开发全栈课程全集</a>
                                <div class="wzrthreerb">
                                    <div >7949次学习</div>
                                                                                <div class="courseICollection" data-id="1647">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                        </div>
                            </div>
                        </li>
                                            <li>
                            <a target="_blank" href="https://www.php.cn/zh/course/1646.html" title="Go语言实战之 GraphQL" class="wzrthreelaimg">
                                <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/067/662221173504a436.png" alt="Go语言实战之 GraphQL"/>
                            </a>
                            <div class="wzrthree-right">
                                <a target="_blank" title="Go语言实战之 GraphQL" href="https://www.php.cn/zh/course/1646.html">Go语言实战之 GraphQL</a>
                                <div class="wzrthreerb">
                                    <div >6765次学习</div>
                                                                                <div class="courseICollection" data-id="1646">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                        </div>
                            </div>
                        </li>
                                            <li>
                            <a target="_blank" href="https://www.php.cn/zh/course/1645.html" title="550W粉丝大佬手把手从零学JavaScript" class="wzrthreelaimg">
                                <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/067/662077e163124646.png" alt="550W粉丝大佬手把手从零学JavaScript"/>
                            </a>
                            <div class="wzrthree-right">
                                <a target="_blank" title="550W粉丝大佬手把手从零学JavaScript" href="https://www.php.cn/zh/course/1645.html">550W粉丝大佬手把手从零学JavaScript</a>
                                <div class="wzrthreerb">
                                    <div >845次学习</div>
                                                                                <div class="courseICollection" data-id="1645">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                        </div>
                            </div>
                        </li>
                                            <li>
                            <a target="_blank" href="https://www.php.cn/zh/course/1644.html" title="python大神Mosh,零基础小白6小时完全入门" class="wzrthreelaimg">
                                <img class="lazy" src="/static/imghw/default1.png"  data-src="https://img.php.cn/upload/course/000/000/067/6616418ca80b8916.png" alt="python大神Mosh,零基础小白6小时完全入门"/>
                            </a>
                            <div class="wzrthree-right">
                                <a target="_blank" title="python大神Mosh,零基础小白6小时完全入门" href="https://www.php.cn/zh/course/1644.html">python大神Mosh,零基础小白6小时完全入门</a>
                                <div class="wzrthreerb">
                                    <div >32985次学习</div>
                                                                                <div class="courseICollection" data-id="1644">
                                                <b class="nofollow small-nocollect"></b>
                                            </div>
                                                                        </div>
                            </div>
                        </li>
                                    </ul>
            </div>
            <script>
                var mySwiper = new Swiper('.swiper2', {
                            autoplay: false,//可选选项,自动滑动
                            slidesPerView : 'auto',
                        })
                $('.wzrthreeTab>div').click(function(e){
                    $('.wzrthreeTab>div').removeClass('check')
                    $(this).addClass('check')
                    $('.wzrthreelist>ul').css('display','none')
                    $('.'+e.currentTarget.dataset.id).show()
                })
            </script>
        </div>

        <div class="wzrFour">
            <div class="wzrfour-title">
                <div>最新下载</div>
                <a href="https://www.php.cn/zh/xiazai">更多>
                </a>
            </div>
                        <script>
                $(document).ready(function(){
                    var sjyx_banSwiper = new Swiper(".sjyx_banSwiperwz",{
                        speed:1000,
                        autoplay:{
                            delay:3500,
                            disableOnInteraction: false,
                        },
                        pagination:{
                            el:'.sjyx_banSwiperwz .swiper-pagination',
                            clickable :false,
                        },
                        loop:true
                    })
                })
            </script>
            <div class="wzrfourList swiper3">
                <div class="wzrfourlTab swiper-wrapper">
                    <div class="check swiper-slide" data-id="onef">网站特效 <div></div></div>
                    <div class="swiper-slide" data-id="twof">网站源码<div></div></div>
                    <div class="swiper-slide" data-id="threef">网站素材<div></div></div>
                    <div class="swiper-slide" data-id="fourf">前端模板<div></div></div>
                </div>
                <ul class="onef">
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a target="_blank"  title="jQuery企业留言表单联系代码" href="https://www.php.cn/zh/toolset/js-special-effects/8071">[表单按钮] jQuery企业留言表单联系代码</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a target="_blank"  title="HTML5 MP3音乐盒播放特效" href="https://www.php.cn/zh/toolset/js-special-effects/8070">[播放器特效] HTML5 MP3音乐盒播放特效</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a target="_blank"  title="HTML5炫酷粒子动画导航菜单特效" href="https://www.php.cn/zh/toolset/js-special-effects/8069">[菜单导航] HTML5炫酷粒子动画导航菜单特效</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a target="_blank"  title="jQuery可视化表单拖拽编辑代码" href="https://www.php.cn/zh/toolset/js-special-effects/8068">[表单按钮] jQuery可视化表单拖拽编辑代码</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a target="_blank"  title="VUE.JS仿酷狗音乐播放器代码" href="https://www.php.cn/zh/toolset/js-special-effects/8067">[播放器特效] VUE.JS仿酷狗音乐播放器代码</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a target="_blank"  title="经典html5推箱子小游戏" href="https://www.php.cn/zh/toolset/js-special-effects/8066">[html5特效] 经典html5推箱子小游戏</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a target="_blank"  title="jQuery滚动添加或减少图片特效" href="https://www.php.cn/zh/toolset/js-special-effects/8065">[图片特效] jQuery滚动添加或减少图片特效</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a target="_blank"  title="CSS3个人相册封面悬停放大特效" href="https://www.php.cn/zh/toolset/js-special-effects/8064">[相册特效] CSS3个人相册封面悬停放大特效</a>
                            </div>
                        </li>
                                    </ul>
                <ul class="twof" style="display:none">
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8328" title="家居装潢清洁维修服务公司网站模板" target="_blank">[前端模板] 家居装潢清洁维修服务公司网站模板</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8327" title="清新配色个人求职简历引导页模板" target="_blank">[前端模板] 清新配色个人求职简历引导页模板</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8326" title="设计师创意求职简历网页模板" target="_blank">[前端模板] 设计师创意求职简历网页模板</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8325" title="现代工程建筑公司网站模板" target="_blank">[前端模板] 现代工程建筑公司网站模板</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8324" title="教育服务机构响应式HTML5模板" target="_blank">[前端模板] 教育服务机构响应式HTML5模板</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8323" title="网上电子书店商城网站模板" target="_blank">[前端模板] 网上电子书店商城网站模板</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8322" title="IT技术解决互联网公司网站模板" target="_blank">[前端模板] IT技术解决互联网公司网站模板</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8321" title="紫色风格外汇交易服务网站模板" target="_blank">[前端模板] 紫色风格外汇交易服务网站模板</a>
                            </div>
                        </li>
                                    </ul>
                <ul class="threef" style="display:none">
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-materials/3078"  target="_blank"  title="可爱的夏天元素矢量素材(EPS+PNG)">[PNG素材] 可爱的夏天元素矢量素材(EPS+PNG)</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-materials/3077"  target="_blank"  title="四个红的的 2023 毕业徽章矢量素材(AI+EPS+PNG)">[PNG素材] 四个红的的 2023 毕业徽章矢量素材(AI+EPS+PNG)</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-materials/3076"  target="_blank"  title="唱歌的小鸟和装满花朵的推车设计春天banner矢量素材(AI+EPS)">[banner图] 唱歌的小鸟和装满花朵的推车设计春天banner矢量素材(AI+EPS)</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-materials/3075"  target="_blank"  title="金色的毕业帽矢量素材(EPS+PNG)">[PNG素材] 金色的毕业帽矢量素材(EPS+PNG)</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-materials/3074"  target="_blank"  title="黑白风格的山脉图标矢量素材(EPS+PNG)">[PNG素材] 黑白风格的山脉图标矢量素材(EPS+PNG)</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-materials/3073"  target="_blank"  title="不同颜色披风和不同姿势的超级英雄剪影矢量素材(EPS+PNG)">[PNG素材] 不同颜色披风和不同姿势的超级英雄剪影矢量素材(EPS+PNG)</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-materials/3072"  target="_blank"  title="扁平风格的植树节banner矢量素材(AI+EPS)">[banner图] 扁平风格的植树节banner矢量素材(AI+EPS)</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-materials/3071"  target="_blank"  title="九个漫画风格的爆炸聊天气泡矢量素材(EPS+PNG)">[PNG素材] 九个漫画风格的爆炸聊天气泡矢量素材(EPS+PNG)</a>
                            </div>
                        </li>
                                    </ul>
                <ul class="fourf" style="display:none">
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8328"  target="_blank" title="家居装潢清洁维修服务公司网站模板">[前端模板] 家居装潢清洁维修服务公司网站模板</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8327"  target="_blank" title="清新配色个人求职简历引导页模板">[前端模板] 清新配色个人求职简历引导页模板</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8326"  target="_blank" title="设计师创意求职简历网页模板">[前端模板] 设计师创意求职简历网页模板</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8325"  target="_blank" title="现代工程建筑公司网站模板">[前端模板] 现代工程建筑公司网站模板</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8324"  target="_blank" title="教育服务机构响应式HTML5模板">[前端模板] 教育服务机构响应式HTML5模板</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8323"  target="_blank" title="网上电子书店商城网站模板">[前端模板] 网上电子书店商城网站模板</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8322"  target="_blank" title="IT技术解决互联网公司网站模板">[前端模板] IT技术解决互联网公司网站模板</a>
                            </div>
                        </li>
                                            <li>
                            <div class="wzrfourli">
                                <span class="layui-badge-dots wzrflr"></span>
                                <a href="https://www.php.cn/zh/toolset/website-source-code/8321"  target="_blank" title="紫色风格外汇交易服务网站模板">[前端模板] 紫色风格外汇交易服务网站模板</a>
                            </div>
                        </li>
                                    </ul>
            </div>
            <script>
                var mySwiper = new Swiper('.swiper3', {
                            autoplay: false,//可选选项,自动滑动
                            slidesPerView : 'auto',
                        })
                $('.wzrfourlTab>div').click(function(e){
                    $('.wzrfourlTab>div').removeClass('check')
                    $(this).addClass('check')
                    $('.wzrfourList>ul').css('display','none')
                    $('.'+e.currentTarget.dataset.id).show()
                })
            </script>
        </div>
    </div>
</div>
<footer>
    <div class="footer">
        <div class="footertop">
            <img src="/static/imghw/logo.png" alt="">
            <p>公益在线PHP培训,帮助PHP学习者快速成长!</p>
        </div>
        <div class="footermid">
            <a href="https://www.php.cn/zh/about/us.html">关于我们</a>
            <a href="https://www.php.cn/zh/about/disclaimer.html">免责声明</a>
            <a href="https://www.php.cn/zh/update/article_0_1.html">Sitemap</a>
        </div>
        <div class="footerbottom">
            <p>
                © php.cn All rights reserved
            </p>
        </div>
    </div>
</footer>

<input type="hidden" id="verifycode" value="/captcha.html">
<script>layui.use(['element', 'carousel'], function () {var element = layui.element;$ = layui.jquery;var carousel = layui.carousel;carousel.render({elem: '#test1', width: '100%', height: '330px', arrow: 'always'});$.getScript('/static/js/jquery.lazyload.min.js', function () {$("img").lazyload({placeholder: "/static/images/load.jpg", effect: "fadeIn", threshold: 200, skip_invisible: false});});});</script>

<script src="/static/js/common_new.js"></script>
<script type="text/javascript" src="/static/js/jquery.cookie.js?1742448831"></script>
<script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script>
<link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' type='text/css' media='all'/>
<script type='text/javascript' src='/static/js/viewer.min.js?1'></script>
<script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script>
<script type="text/javascript" src="/static/js/global.min.js?5.5.53"></script>


<!-- Matomo -->
<script>
  var _paq = window._paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="https://tongji.php.cn/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '9']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Matomo Code -->

</body>
</html>