时间:2021-07-01 10:21:17 帮助过:44人阅读
function getContent($source){
if(empty($source)) return "";
$str = "这是我要返回的值了";
preg_match('/(\d+)<\/span>/isU',$source,$matches);
if($matches[1]>time()){
return $str;
}else{
return "";
}
}
//使用方法
date_default_timezone_set("Asia/shanghai");
$content ='1324570103';
$res = getContent($content);