public function weeks(DateInterval $diff)
    {
        if ($diff->days < 30) {
            return (int) floor($diff->days / 7);
        }
        return false;
    }
public function weeks(DateInterval $diff)
    {
        if ($diff->days < 30) {
            return (int) floor($diff->days / 7);
        }
        return false;
    }
public function weeks ( DateInterval $ diff ) { if ( $ diff -> days < 30 ) { return ( int ) floor ( $ diff -> days / 7 ) ; } return false ; }
Get Number of weeks
@param DateInterval $diff
@return integer|false
Get Number of weeks