calculating a date and returning the week number depending on the start date in php?
<p>im trying to create a function that takes a <code>$start_date</code> as parameter and it should calculate which week number we are in i.e</p>

<p>for instance $start_date equals <code>2012-08-16</code></p>

<pre><code>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 
    }
</code></pre>

<p>how can i implement this in php? thanks</p>
