<?php
$str = "<images> <record> <url>www.baidu.com</url> <title>百度</title> </record> <record> <url>www.google.com</url> <title>谷歌</title> </record> </images>" ; $preg = "/<title>(.*?)<\/title>/"; preg_match_all( $preg , $str , $match ); print_r( $match );
?>
$str = "<images> <record> <url>www.baidu.com</url> <title>百度</title> </record> <record> <url>www.google.com</url> <title>谷歌</title> </record> </images>" ; $preg = "/<title>(.*?)<\/title>/"; preg_match_all( $preg , $str , $match ); print_r( $match );
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货