Category PHP
Static Variables in PHP
Static variables in PHP are those variables that retain the values even after the function exits. In other words, variables which hold their values between multiple function calls are called static variables. When the execution of a function is completed,…
Global Variables in PHP
Global variables in PHP are those variables which are declared outside of any function and accessible throughout the program. This means that you can access global variables anywhere, inside and outside the functions. In simple words, global variables can be…
Local Variables in PHP
In PHP, there are three types of variables: local, global, and static variables. In this tutorial, we will understand local variables in PHP and their scope with the help of examples. Later on, we will understand on global and static…
Data Types in PHP

Data types are one of the most fundamental concepts in PHP, as well as in any other programming language. They define how the language stores the different kinds of data. When you write a program in PHP, you may need…
Variables in PHP

In this tutorial, you’ll learn about variables in PHP, which is one of the basic building blocks of any PHP program. You will understand how will you define and use within the PHP program. A variable in PHP or any…