Danny620 Posted June 1, 2010 Share Posted June 1, 2010 <?php echo time(); $time = time(); $hours = 86400; $time + $hours; echo "<br />$time"; ?> I am sure $time should output a time in the future am i right? Quote Link to comment https://forums.phpfreaks.com/topic/203535-time-function-not-working/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 1, 2010 Share Posted June 1, 2010 $time + $hours; does not mean anything because you did not assign the result to anything (you have taken algebra in school?) Quote Link to comment https://forums.phpfreaks.com/topic/203535-time-function-not-working/#findComment-1066207 Share on other sites More sharing options...
hcdarkmage Posted June 1, 2010 Share Posted June 1, 2010 try $time = $time + $hours Quote Link to comment https://forums.phpfreaks.com/topic/203535-time-function-not-working/#findComment-1066208 Share on other sites More sharing options...
Danny620 Posted June 1, 2010 Author Share Posted June 1, 2010 haha sorry for wasting your time dont know why i did'tn see that haha Quote Link to comment https://forums.phpfreaks.com/topic/203535-time-function-not-working/#findComment-1066209 Share on other sites More sharing options...
BizLab Posted June 1, 2010 Share Posted June 1, 2010 $time + $hours; does not mean anything because you did not assign the result to anything (you have taken algebra in school?) was that even remotely helpful? Quote Link to comment https://forums.phpfreaks.com/topic/203535-time-function-not-working/#findComment-1066237 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.