php 正则提取XML 指定内容步骤?求大拿帮忙(史上最难)

WBOY
Release: 2016-06-13 12:30:31
Original
874 people have browsed it

php 正则提取XML 指定内容方法?求大拿帮忙(史上最难)
有XML内容 

<?xml version="1.0" encoding="GBK"?><br />
<stream><MSGCODE>AAAAAAA</MSGCODE><MSGCN>交易成功!</MSGCN><B2CCERTNO>500415</B2CCERTNO><ORDERDATE>2013-11-21</ORDERDATE><ORDERTIME>09:52:23</ORDERTIME><ORDERNO>DGM20131121000009</ORDERNO><ORDERAMT>6.26</ORDERAMT><CURRID>01</CURRID><PAYAMT>6.26</PAYAMT><PAYNO>BC131121095428004271</PAYNO><ACCNO>6226********6770</ACCNO><ACCTYPE>01</ACCTYPE><PBCSTNAME>测试</PBCSTNAME><ACCHASH>fSSczJM0fims1Xpmrvi2pnBtrr4=</ACCHASH></stream>
Copy after login



求使用PHP 提取出AAAAAAADGM20131121000009 中的 “AAAAAA"和 ”DGM20131121000009“ 可以使用正则进行匹配

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template