/ Published in: PHP
/**
* @param Int $week
* @param Int $year
* @return Array
*/
* @param Int $week
* @param Int $year
* @return Array
*/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public function getDaysInWeek($week, $year) { // set up ISO week date, eg: 2006W527, sunday(7), week 52 of 2006 for ($day = 1; $day <= 7; $day++) { $ISOweekDate = $year . "W" . $week . $day; } return $daysInWeek; }