"> "> ">

ข่าวสารรถยนต์

> 12)); $utf8 .= chr( 0x80 | (($unicode >> 6) & 0x3F)); $utf8 .= chr( 0x80 | ($unicode & 0x3F)); } } return $utf8; } $xml5=file("http://www.autospy.in.th/feed"); $xmlDATA=""; foreach($xml5 as $key=>$value){ $value=str_replace("","",$value); $xmlDATA.=$value; } $data1=explode("",$xmlDATA); $iTitle=array(); $iLink=array(); $iDesc=array(); $ipubDate=array(); foreach($data1 as $key=>$value){ if($key>0){ $value=str_replace("","",$value); $iTitle[$key]=strip_tags(substr($value,strpos($value,""),strpos($value,""))); $iLink[$key]=strip_tags(substr($value,strpos($value,""),strpos($value,"")-strpos($value,""))); $iDesc[$key]=strip_tags(substr($value,strpos($value,""),strpos($value,"")-strpos($value,""))); $ipubDate[$key]=strip_tags(substr($value,strpos($value,""),strpos($value,"")-strpos($value,""))); } } for($i=1;$i<6;$i++){ echo '
'.$iTitle[$i].'
'.$iDesc[$i].'
'; } ?>