What is a session and how is it managed? In this article, we're going to look at sessions: starting a session, the session id, session variables and ending a session.
What does it mean to filter input and how do we use the filter_input function? In this tutorial we'll look into filter form input; filter input string and filter input integer.
The Liskov substitution principle (LSP) in simple terms, states that all derived classes must behave according to the reasonable assumptions of the base class.
The open-closed principle (in PHP) is a software engineering heuristic that minimizes the knock on effects of updates to your code.
SRP (in PHP) is a rule of thumb that minimizes unintended consequences, and one way to do that, is for each class to have one responsibility only.
In this short tutorial, we're going to look at validating a phone number in PHP. Phone numbers come in many formats depending on the locale of the user.
The Dependency Inversion Principle (DIP) aims to solve the problem of bad design. But what is bad design according to the Dependency Inversion Principle?
How to escape output in PHP: In this tutorial we're going to look at the PHP htmlspecialchars and htmlentities functions.
In this tutorial, we're going to convert a timestamp in PHP to a date or datetime with custom formatting.
In this article we're going to look at Cross Site Scripting in PHP, otherwise known as XSS. What is XSS in PHP and how does it occur, what are the sources of XSS?