01.
<?php
02.
function
DateThaiMonths(
$strDate
) {
03.
$strMonth
=
date
(
"n"
,
strtotime
(
$strDate
));
04.
$strMonthCut
= Array(
""
,
"ม.ค."
,
"ก.พ."
,
"มี.ค."
,
"เม.ย."
,
"พ.ค."
,
"มิ.ย."
,
"ก.ค."
,
"ส.ค."
,
"ก.ย."
,
"ต.ค."
,
"พ.ย."
,
"ธ.ค."
);
05.
$strMonthThai
=
$strMonthCut
[
$strMonth
];
06.
return
"$strMonthThai"
;
07.
08.
}
09.
10.
11.
?>