<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # XML 可擴展的標記語言 解決HTML不可擴展的問題 作用:保存數據或傳輸數據,不是用來顯示數據的。 `聲明格式: <?xml version="1.0" encoding="UTF-8"?> 語法: <?xml version="1.0" encoding="UTF-8"?> <user> <name> liudehua</name> <NAME>AUSDSDF</NAME> <age>33</age> </user> ` 特點:標簽可以自己隨便定義 ## 寫入XML數據文件 ## ~~~ $xml= new DOMDocument("1.0","UTF-8"); $xml->formatOutput=true; //格式化輸出 $user=$xml->createElement('user'); //創建根節點 $name=$xml->createElement('name','liudahua'); //添加內容 $age=$xml->createElement('age',18); //添加內容 $user->appendChild($age); //追加到內容 $user->appendChild($name); //追加到內容 $xml->appendChild($user); //追加到根節點 ~~~ # PHP讀取XML內容 語法 : $a=simplexml_load_file('XML文件'); $a->xml文件里的標簽名 ~~~ $user=simplexml_load_file('user.xml'); echo $user->name; //name是user.xml里的標簽名 ~~~ ## 第二種方法: 讀取字符串 $user=simplexml_load_string($a); $a->xml字符串里的 標簽名 ~~~ $a= <?xml version="1.0" encoding="UTF-8"?> <user> <age>18</age> <name>liudahua</name> </user> $user=simplexml_load_string($a); $user->name; //name是user.xml里的標簽名 ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看