$count = query("SELECT * FROM TABLE WHERE YEAR(`DATE`) = YEAR(NOW()) AND WEEK(`DATE`, 1) = WEEK(NOW(), 1)");
$arr = array();
foreach($count as $cnt) {
$arr[] = date("w",strtotime(date_create($cnt->DATE)->Format('Y-m-d')));
}
$days = array_count_values($arr);
//И вызываем нужный день, где нам надо
echo (isset($days[1])? $days[1]:'0'); //Понедельник
echo (isset($days[2])? $days[2]:'0'); //Вторник
echo (isset($days[3])? $days[3]:'0'); //Среда
echo (isset($days[4])? $days[4]:'0'); //Четверг
echo (isset($days[5])? $days[5]:'0'); //Пятница
echo (isset($days[6])? $days[6]:'0'); //Суббота
echo (isset($days[7])? $days[7]:'0'); //Воскресенье
<mask id="myShiningMask" >
<rect x="0" y="0" width="100%" height="100%" fill="url(#shine)" />
</mask>
echo "* * * * * C:\php-5.6.9\php.exe -q C:\runscript.php send-data >/dev/null 2>&1" >> C:\cygwin\var\cron\tabs\[Username]
$time = new DateTime('00:00:00');
$fulltime = clone $time;
$time->add($counttimethere);
$time->add($counttimeback);
echo 'Общее время:' . $fulltime->diff($time)->format("%H:%I:%S");
$dtz = new DateTimeZone('America/Los_Angeles');
$zona = new DateTime('now', $dtz);
$offset = $dtz->getOffset($zona) / 3600;
echo "GMT" . ($offset < 0 ? $offset : "+".$offset);
$target_time_zone = new DateTimeZone('America/Los_Angeles');
$date_time = new DateTime('now', $target_time_zone);
echo 'GMT '.$date_time->format('P');