PHP : Date difference logically best way
I need to calculate two date’s difference in days, Where one date is fixed (i.e. first day of month ). Another date would be today’s date. I know how to calculate difference between it. But I want to know which one would be 100% effective, using DateTime::diff() or using date('d') function. Anyone help me out