截取指定区间字符串.txt private function get_between($str,$start = '',$end = '') { $start = html_entity_decode($start); $end = html_entity_decode($end); $s1 = strstr($str,$start); $str = $s1 ? $s1 : $str; $e_leng = strpos($str,$end)
private function get_between($str,$start = '',$end = '') { $start = html_entity_decode($start); $end = html_entity_decode($end); $s1 = strstr($str,$start); $str = $s1 ? $s1 : $str; $e_leng = strpos($str,$end); $str = substr($str,0,$e_leng); $str = str_replace($start,'',$str); return trim($str); }