OOP in PHP – Introduction to Class and Objects


In the previous tutorials, we used functions to write PHP scripts. Therefore, it is called structural programming. But, structural programming becomes more messy and difficult to understand and handle as the size of the application or project increases. We are now starting Object Oriented Programming- OOP in PHP that makes use of classes and objects. What is Object-Oriented Programming –...

Regex in PHP


What is a Regular Expression? The regular expression is basically started from mathematics which defines a range of characters for some purpose. Different languages get references from this mathematical concept and applied it for searching patterns and validation of data. In this article, you will learn regex in PHP. There are many use cases of regex in PHP like searching, validating, etc. In...

PHP JSON and Callback functions


In this article, you will learn about JSON format and its available PHP functions. Also, we will look at the Callback functions in PHP. So, let’s start. What is JSON? JSON stands for Javascript Object Notation. It is a structure to represent the data in a more readable form. JSON is used all over the world by almost all languages, therefore it plays an important role in making cross...

PHP Filters -Validation and Sanitization


In this article, you will learn some useful PHP topics as per title, Filters, and Callback functions. Let’s start with the filters. PHP Filters PHP filters are used to sanitize and validate the input data. Sanitization: To Remove any illegal characters from the input data. Validation: Process of determining if the input data is in proper form. PHP filters make sure sanitization and...

Tutor Network