When you use strict comparison, two values are never considered equal if their types differ. Are there any cases where strict comparison is always required?
How to implement getter and setter functions (a standard oop paradigm) in PHP classes (with a short, commented example).
A quick and simple example on how to use PDO (the recommended database extension) to establish a database connection and send an SQL query.
The fopen() function is incredibly helpful: you can use it to read data from remote locations using different protocols.
If a PHP script is taking too much time to complete, you can isolate the piece of code responsible for the long execution time using time() and microtime().
The mktime() function returns the Unix Timestamp of a specific date-time, but it has another incredibly useful feature: it can perform date-time operations.
In some cases you need to keep access data unencrypted. What is the best way to keep this data as secure as possible?
The Debug Flag is an easy and elegant solution for when you need to manually debug a script changing some of the code for debugging purposes.
SQL injections are one of the most dangerous attacks against web applications. With this guide you will learn how to stay safe (using the “three essential steps” for security and prevention) and how to protect your PHP code.
This post focuses on how to handle time zones and daylight-saving time changes.
As a web developer, sooner or later you will need to deal with time zones. This is your chance to master this topic, so keep reading and feel free to ask any questions in the comments.