Skip to content

Instantly share code, notes, and snippets.

@stevencwarren
Created November 4, 2010 19:11
Show Gist options
  • Save stevencwarren/662990 to your computer and use it in GitHub Desktop.
Save stevencwarren/662990 to your computer and use it in GitHub Desktop.
function weekly_matchups_current_week()
{
$current_day = date('l');
if ($current_day == 'Monday' || $current_day == 'Tuesday' || $current_day == 'Wednesday' || $current_day == 'Thursday' ) {
$current_week = date('W') - 1;
}
else
{
$current_week = date('W');
}
return $current_week;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment