Ich möchte cMonth in Spanisch Echo .. Ich habe verschiedene Dinge ohne Ergebnis versucht. irgendeine Idee?spanische Ausgabe für "Datum" Funktion
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"));
Verwenden strftime (http://php.net/strftime) anstelle von "Datum" verwenden. Schauen Sie diese Antwort: http://stackoverflow.com/questions/4975854/translating-php-date-for-multiling-site – yivi