im trying to create a function that takes a $start_date
as parameter and it should calculate which week number we are in i.e
for instance $start_date equals 2012-08-16
private function get_week_number($start_date){
// get current date
// caluculate the difference between start_date and current_date
// determine which week we are in 1, 2 or 3
// return $week
}
how can i implement this in php? thanks