(?P.+?)<\/td>/s', $content, $block)) { $date = explode('
', $block['block']); array_pop($date); if(count($date) < 4) { $shift = array_shift($date); $year = substr($shift, -9); array_unshift($date, $year); array_unshift($date, str_replace($year, '', $shift)); } $reply .= '农历: ' . implode(' ', $date); } if(preg_match('/(?P.+?)<\/td>/s', $content, $block)) { if(preg_match_all('/title=\'(?P.+?)\'/', $block['block'], $lines)) { $reply .= "==================\n"; $reply .= "宜: \n"; foreach($lines['line'] as $l) { $reply .= "{$l}\n"; } } } if(preg_match('/(?P.+?)<\/td>/s', $content, $block)) { if(preg_match_all('/title=\'(?P.+?)\'/', $block['block'], $lines)) { $reply .= "==================\n"; $reply .= "忌: \n"; foreach($lines['line'] as $l) { $reply .= "{$l}\n"; } } } } return $this->respText($reply);