$value) { if(!empty($value)){ if($Keywords == trim($value)){ $Content = $contentInfo[$key]; break; } } } $ContentArr = explode("{*#}", $Content); $title = $ContentArr[0]; $keywords = $ContentArr[1]; $description = $ContentArr[2]; $ArticArr = explode("{#A#}",$ContentArr[3]); foreach ($ArticArr as $Akey => $value) { $wz = explode("{@A@}", trim($value)); if($Akey == 0){ $h1 = $wz[0]; $num = $wz[1]; $wz1 = str_replace("{*A*}", "".$h1."", $ArticleInfo[$num]); }else{ $h2 = $wz[0]; $num = $wz[1]; $wz2 = str_replace("{*A*}", "".$h2."", $ArticleInfo[$num]); } } $Artic = "

".$h1."

"."

".$wz1."

"."

".$h2."

"."

".$wz2."

"; $HrefArr = explode("|", $ContentArr[4]); foreach ($HrefArr as $value) { $KeyNum = trim($value); $LinksKey = trim($KeywordsInfo[$KeyNum]); $HrefKey = str_replace(" ", "+", $LinksKey); $Href .= " ".$LinksKey."   "; } ?> <?php echo $title; ?> " ?> " ?> " ?> "; echo $Href; ?>