php截取字符串内容

function mySubstr($con,$startstr,$endstr){
		$start = strpos($con, $startstr)+strlen($startstr);
		$len = strpos($con, $endstr)-$start;
		return trim(substr($con, $start,$len));
	}

你可能感兴趣的:(php截取字符串内容)