I need to display the time but it must start from 00:00:00? I\'ve got the following but it uses the current time.
print(date(\"H:i:s\"));
date() uses the current time when you don't pass in an explicit timestamp. See the optional argument in the date documentation.
date()
If you want to explicitly format midnight, use:
date("H:i:s", mktime(0, 0, 0));