Skip to content
Advertisement

Tag: cakephp-helper

Interesting Question here – Why Tomorrow Date PHP and +1 Days Gives Different Time

Hello PHP DEV, I Want to know why this strange thing is happening! Example : strtotime(“+1 days”) returns time as UTC TIME which is current Time so why strtotime(‘tomorrow’) returns time as 00:00:00. I noticed this show wants to know the official reason behind this. Answer strtotime(“+1 days”) uses current time and adds a day strtotime(‘tomorrow’) returns tomorrow at midnight

Advertisement