<?php //仅供参考。。。 preg_match_all("@abc(.*)def@iUs","abc我是可以匹配到的内容def",$arr);//匹配 print_r($arr);//打印出来 ?>
用preg_match();函数