\n"; $html .= "\n"; return $html; } function getPageObjectList($s) { // , , or $regs = array( "//is", "//is", "//is" ); $list = array(); foreach ($regs as $reg) { if (preg_match_all($reg, $s, $result)) { $result = array_pop($result); $list = array_merge($result, $list); $s = str_replace($result, "", $s); } } return $list; } }