3 ms·
For TimeClass one should not assume 86400 seconds in a day, and use DateTime::diff() instead. PHP The Right Way is better on this: http://www.phptherightway.com
by grakic 14y ago
For TimeClass one should not assume 86400 seconds in a day, and use DateTime::diff() instead. PHP The Right Way is better on this: http://www.phptherightway.com/#date_and_time http://www.phptherightway.com/#date_and_time
With the autoloader, there is no need to do include_once(), simple include() is enough. The file will be loaded only once for every class.