<?php $url = "http://m.weather.com.cn/mweather/101280601.shtml"; //目标站 $content=file_get_contents($url); $match='/<title>(.*)<\/title>/'; preg_match($match,$content,$ma); print_r($ma);//打印输出 ?>