//获取指定标记中的内容 function get_tag_data($str, $start, $end) { if ( $start == '' || $end == '' ) { return; } $str = explode($start, $str); $str = explode($end, $str[1]); return $str[0]; }