Home  >  Article  >  Backend Development  >  php查询这几行xml语言如何做?网上代码太长了看不懂

php查询这几行xml语言如何做?网上代码太长了看不懂

WBOY
WBOYOriginal
2016-06-13 11:45:22979browse

php查询这几行xml语言怎么做?网上代码太长了看不懂


查询
dbcon.php
select.php
footer.php


帮助
dbcon.php
help.php
footer.php



如果查询keyword查的是“帮助”,能让PHP返回一个数组将帮助里面的所有数值都存到一个数组里。。。

$xml = simplexml_load_file('jump.xml');
  echo $xml->Keyword->data;
  print_r($xml);

?>
这样出来是数组,可是不是经过筛选的数据....大神帮帮忙!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn