Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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