我需要生成一个列表的HTML代码,在当天之后的10个开放日的列表中,开放日期是指工作日(m,t,w,t和f),我是使用下面的函数将日期翻译法语:基于当前日期的日期计数器
function f_date() {
$temps = time();
$jours = array('Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi');
$jours_numero = date('w', $temps);
$jours_complet = $jours[$jours_numero];
$NumeroDuJour = date('d', $temps);
$mois = array(' ', 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre');
$mois_numero = date("n", $temps);
$mois_complet = $mois[$mois_numero];
$an = date('Y', $temps);
$fr_temps = "$jours_complet, $NumeroDuJour $mois_complet $an";
return "$fr_temps";
}
echo "<br/>".f_date();
,我想产生以下结果:
<select name="ladate">
<option selected="selected" value="Mardi, 29 mai 2012">29 mai 2012</option>
<option value="Mercredi, 30 mai 2012">30 mai 2012</option></select>
....
<option value="Vendredi, 15 juin 2012">15 juin 2012</option></select>
</select>
请告诉我,如果你需要更多的信息。
谢谢。
这里有什么问题?你有什么麻烦? –
使用哪些php代码,考虑php函数,以生成当天的下列10个工作日。问题是服务器没有更新版本的PHP,所以我需要使用这个PHP函数进行翻译,并生成HTML ...并且我不知道如何继续:/ – Zatla00