public function months(DateInterval $diff)
    {
        if ($diff->days >= 365) {
            return FALSE;
        }

        $x = (int) floor($diff->days / 30.417);
        if ($x === 0) {
            return 1;
        } else {
            return $x;
        }
    }
public function months(DateInterval $diff)
    {
        if ($diff->days >= 365) {
            return FALSE;
        }

        $x = (int) floor($diff->days / 30.417);
        if ($x === 0) {
            return 1;
        } else {
            return $x;
        }
    }
public function months ( DateInterval $ diff ) { if ( $ diff -> days >= 365 ) { return FALSE ; } $ x = ( int ) floor ( $ diff -> days / 30.417 ) ; if ( $ x === 0 ) { return 1 ; } else { return $ x ; } }
Get Number of months
@param DateInterval $diff
@return integer|false
Get Number of months