I do it, but it does not work. What is the problem?
$day[0] = "Воскресенье"; $day[1] = "Понедельник"; $day[2] = "Вторник"; $day[3] = "Среда"; $day[4] = "Четверг"; $day[5] = "Пятница"; $day[6] = "Суббота"; $time = '2015-01-01'; $dnum = date("w", $time); $textday = $day[$dnum]; echo $textday;
echo $dnum;
- Igor$dnum = intval(date("w", $time));
- Igor