Home > Backend Development > PHP Tutorial > PHP正则小疑点

PHP正则小疑点

WBOY
Release: 2016-06-13 12:43:17
Original
812 people have browsed it

PHP正则小问题
Array
(
[description] => HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=40EA513DEFAE87D378EACB79C4E8A1B5; Path=/ipcam
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 27 Jun 2013 01:08:23 GMT
Server: Apache-Coyote/1.1

c1b





1.0
GBK
UserLogin
244ab25cf7f0258401c2ae0b038ead0a


0
}

这是原字符串,我想取出其中的xml那段字符串,要肿么来写那个正则,自己写的总是为空,整不出来。

结果应该为:





1.0
GBK
UserLogin
244ab25cf7f0258401c2ae0b038ead0a




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