PHP Tutorials

This category contains tutorials related to PHP Tutorials.

Inheritance in PHP

In this tutorial, we’ll dive into Inheritance in PHP. It’s a way to inherit properties and methods from one class to another, allowing us to create a new class with its features, plus all the attributes of its parent class. During inheritance, you’ll encounter two types of classes Note, extends keyword is used to perform […]

Inheritance in PHP Read More »

Access Modifiers

In this tutorial, we will learn about Access Modifiers. Access Modifiers are used to control the accessibility of properties and methods. For example, you want to create a method that you do not want to make accessible from outside of the class. You can easily do this with the help of Access Modifiers. Types of Access Modifiers: 

Access Modifiers Read More »

PHP Destructor

In this tutorial, we will learn about PHP Destructor. The destructor method is totally reverse of the constructor method. PHP destructor does not return any value. In case we create __destructor function in class, PHP will automatically call the destructor function if there are no other references to a particular object or at the end of the script. Please Note, that

PHP Destructor Read More »

PHP Constructors

In this tutorial, we’ll explore the PHP Constructors, a special function within a class. Its primary purpose is to initialize the properties of each object instance. The constructor is remarkable because it’s automatically invoked when a new object is created. Let’s delve into the details of this essential feature. Please Note, that the construct function

PHP Constructors Read More »

What is PHP OOPs

In this tutorial, we will learn about What is PHP OOPs. OOP stands for Object-Oriented Programming. Object-oriented programming is a programming paradigm based on the concept of classes and objects. By using the OOPs approach we can divide the software program into simple, reusable pieces of code(known as a class). The classes are used to create individual instances of objects. Difference between Class and Objects:

What is PHP OOPs Read More »

PHP Global Variables

In this tutorial, we will learn about PHP Global Variables. The global variables are also known as superglobals and These these superglobal variables first time introduced in PHP 4.1.0 on 10 December 2001. A very interesting thing about these superglobal variables is these variables are always accessible. You can access them in different PHP files

PHP Global Variables Read More »

PHP Cookies

In this tutorial, we will learn about PHP Cookies. PHP Cookies are used to store some data on client’s machines in the form of a text file. The main motive of storing cookies on the client machine is to identify the user when user will revisit a site. Because whenever a user requests a web

PHP Cookies Read More »

PHP Sessions

In this tutorial, we will learn about PHP Sessions. PHP sessions are a way to access data among different web pages of the website. All the session variables and their values stored in a file in the temporary directory on the server. With the help of PHP sessions, we can share various kind of data among

PHP Sessions Read More »

Scroll to Top
×