function displaydate($x) { $thai_m=array("มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฏาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"); $date_array=explode("-",$x); $y=$date_array[0]; $m=$date_array[1]-1; $d=$date_array[2]; $m=$thai_m[$m]; $y=$y+543; $displaydate="$d $m $y"; return $displaydate; } // end function displaydate ?>
^ -ขึ้นข้างบน