Static methods and properties

I assume you know the difference between class and an object. If not, read this! A static method is basically the same as a non-static, but there is one difference: a static method is accessible without needing an instantiation of the class. Because you access a static element via a class and not an instance, […]

Date and time with PHP and MySQL

PHP way PHP uses unix timestamps for all its date functionality. Functions to format and convert this timestamps are available. Timestamp is simply an unsigned integer – it’s the number of seconds that have elapsed since midnight on January 1st 1970 (greenwich mean time). MySQL way MySQL has three date types for use in columns. […]