Demo:
?phprequire XMLParser.class.php $xmlfile = file.xml $xmlstring = ?xml version= 1.0 encoding= utf-8 ? xmlroot status 1000 /status info /info result id 100 /id name fdipzone /name gender 1 /gender age 28 /age /result /xmlroot echo pre $xml_parser = new XMLParser();echo response xmlfile/r/n list($flag, $xmldata) = $xml_parser- loadXmlFile($xmlfile);if($flag){print_r($xmldata);echo response xmlstring/r/n list($flag, $xmldata) = $xml_parser- loadXmlString($xmlstring);if($flag){print_r($xmldata);echo /pre ?
本文讲解了php XML文件解释类,更多相关内容请关注php 。
相关推荐:
php CSS Update Class的相关内容讲解
关于php __call 与 __callStatic 的内容讲解
关于memcached 常用命令及使用说明
以上就是关于php XML文件解释类的讲解的详细内容,PHP教程
郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。
新闻热点
疑难解答