News for hackers. Stuff that matters.
Re:PHP Tips and Tricks - Codular by grakic on Sunday July 29, 2012 @05:33PM (#4309816)
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

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.

There are no comments on this comment yet.