Skip to content

Instantly share code, notes, and snippets.

@victorknust
Created February 7, 2017 10:48
Show Gist options
  • Save victorknust/53e85ae3e9b67083e917d4b9d7b81fa7 to your computer and use it in GitHub Desktop.
Save victorknust/53e85ae3e9b67083e917d4b9d7b81fa7 to your computer and use it in GitHub Desktop.
<?php
function days_of_this_week()
{
$data = strtotime(date('Y-m-d'));
$ano = date('o', $data);
$semana = date('W', $data);
for($i = 1; $i <= 7; $i++) {
$dias[] = date("m/d/Y l", strtotime($ano . 'W' . $semana . $i));
}
return $dias;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment