]+encoding)="(.+?)"/','\\1="'.$out_enc.'"',$source); } return simplexml_load_string($source); } $adkey = "outlink_search"; $gisa_id = $_GET["id"]; $gisa_name = $_GET["name"]; if ($gisa_id == "") { ?> Header as $item) { $createdate = iconv("UTF-8","euc-kr",$item->CreateDate); $modifydate = iconv("UTF-8","euc-kr",$item->ModifyDate); $crmrelationname = iconv("UTF-8","euc-kr",$item->CmsRelationName); $newstitle = iconv("UTF-8","euc-kr",$item->NewsTitle); $subtitle = iconv("UTF-8","euc-kr",$item->SubTitleList); $photocount = iconv("UTF-8","euc-kr",$item->PhotoCount); settype($photocount, "integer"); $gijaname = iconv("UTF-8","euc-kr",$item->GijaID); $tmparr2 = array($modifydate, $crmrelationname, $newstitle, $subtitle, $photocount, $gijaname); array_push($list2, $tmparr2); } $ennewstitle = urlencode($newstitle); $modifydate = strtr($modifydate, "T", " "); $createdate = strtr($createdate, "T", " "); $list3 = array(); foreach($results2->NewsMetadata as $item) { $credit = iconv("UTF-8","euc-kr",$item->Credit); $largeclass = iconv("UTF-8","euc-kr",$item->NewsClassList->NewsClass->LargeClass['name']); $middleclass = iconv("UTF-8","euc-kr",$item->NewsClassList->NewsClass->MiddleClass['name']); $smallclass = iconv("UTF-8","euc-kr",$item->NewsClassList->NewsClass->SmallClass['name']); $tmparr3 = array($credit, $largeclass, $middleclass, $smallclass); array_push($list3, $tmparr3); } //자동차 리턴시키는 루틴 if ($list3[0][3] == "리뷰24") { ?> <? echo $newstitle; ?> : 스포츠조선