Can someone please help me simplify this and turn it into a function? Can i then store functions in an .inc file and reference it as needed? How would i do that? Thanks!!!!
//This will find current week
$today = date("YmdHis");
$week_array = array(20060819230300, 20060819231400, 20060924100000);
if ($today<$week_array[0])
{$week = "1";}
elseif ($today<$week_array[1])
{$week = "2";}
elseif ($today<$week_array[2])
{$week = "3";}
else {$week= "0";}