私はスペイン語でcMonthをエコーしたいと思っています。何か案が?"日付"機能のスペイン語出力
if($_REQUEST["month"]>0){
$cMonth = "0".intval($_REQUEST["month"]);
if ($_REQUEST["month"]>9) {
$cMonth = intval($_REQUEST["month"]);
}
$cYear = intval($_REQUEST["year"]);
}else
{
$cMonth = date("m");
$cYear = date("Y");
}
echo date("F, Y",strtotime($cYear."-".$cMonth."-01"));
使用のstrftime(http://php.net/strftime)を使用することができます。この回答を見てください:http://stackoverflow.com/questions/4975854/translating-php-date-for-multilingual-site – yivi