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? 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?) 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 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 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? Link to comment https://forums.phpfreaks.com/topic/203535-time-function-not-working/#findComment-1066237 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.