sphinx Posted December 12, 2011 Share Posted December 12, 2011 hello, How would I add 'seconds' to this: if (dd == 0) { return (hh+" hours, "+mm+" minutes, "+ss); } I've tried: if (dd == 0) { return (hh+" hours, "+mm+" minutes, "+ss+" seconds); } However, nothing displays, could someone assist. Many thanks Link to comment https://forums.phpfreaks.com/topic/253023-adding-the-seconds/ Share on other sites More sharing options...
joe92 Posted December 12, 2011 Share Posted December 12, 2011 Close the speech marks after seconds. Link to comment https://forums.phpfreaks.com/topic/253023-adding-the-seconds/#findComment-1297211 Share on other sites More sharing options...
sphinx Posted December 12, 2011 Author Share Posted December 12, 2011 thanks Link to comment https://forums.phpfreaks.com/topic/253023-adding-the-seconds/#findComment-1297213 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.