|  |  | 
            
              | ไม่รู้ว่าตามที่ต้องการป่าวนะ 
 <?php
$thai_day=array("อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์");
$thai_month=array(
	"0"=>"",
	"1"=>"มกราคม",
	"2"=>"กุมภาพันธ์",
	"3"=>"มีนาคม",
	"4"=>"เมษายน",
	"5"=>"พฤษภาคม",
	"6"=>"มิถุนายน",	
	"7"=>"กรกฎาคม",
	"8"=>"สิงหาคม",
	"9"=>"กันยายน",
	"10"=>"ตุลาคม",
	"11"=>"พฤศจิกายน",
	"12"=>"ธันวาคม"					
);
function thai_date($time){
	global $thai_day,$thai_month;
	$thai_date_return="วัน ".$thai_day[date("w",$time)];
	$thai_date_return.=	"ที่ ".date("j",$time);
	$thai_date_return.=" เดือน ".$thai_month[date("n",$time)];
	$thai_date_return.=	" พ.ศ.".(date("Y",$time)+543);
	return $thai_date_return;
}
function thai_time($time){
	$thai_time_return.=	"เวลา ".date("H:i",$time)." น.";
	return $thai_time_return;
}
	$eng_date=time();
	$eng_time=time();
?>
 ส่วนวิธีเรียกใช้งานก็
 
 echo thai_date($eng_date);
 
 |  
              | 
                
                  |  |  |  |  
                  |  | 
                      
                        | Date :
                            2010-08-25 16:20:44 | By :
                            Dragons_first |  |  |  
                  |  |  |  |  |  |  |