PHP Basics

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 »

Comments in PHP

In this tutorial we will learn about Comments in PHP.  Comments are not used to perform any function in the program but they really useful for developers. Developers can write comments with variables and functions to remember their working (purpose) in the program. One important thing to mention comments doesn’t put any impact on the …

Comments in PHP Read More »

Function in PHP

In very simple language a function in Php is a block of code which can be used to perform a specific task. In addition, we can use a function multiple times without writing it again and again. For example, you want to perform some mathematical task in your code several times. It means you have …

Function in PHP Read More »

Arrays in PHP

In this tutorial, we will learn about Arrays in PHP. In simple words, an Array is variable which makes us able to store more than one same kind values using a single variable name. For example, you want to save the name of a hundred students in variables. It means you have to make 100 variables. …

Arrays in PHP Read More »

Operators in PHP

In this tutorial, we will lean Operators in PHP. Operators are special symbols which tell to PHP processor to do some special operations. For example, There is + operator which tells PHP Processor to add two numbers (4+5). There are various operators in PHP and they are divided into some categories. List of Categories: Arithmetic Operators …

Operators in PHP Read More »

Strings in PHP

In this tutorial, we will learn about Strings in PHP. A string is commonly described as a collection of characters. Mean a string is collection of number, alphabets or special symbols for example “Hello World”. In PHP you can define a string in the program with two ways by using single quotes(‘ ‘) or by using …

Strings in PHP Read More »

Data Types in PHP

In this tutorial, we will learn about Data Types in PHP. PHP support various data types like strings, numeric types complex data types like array and objects. There is a total of eight data types available in PHP that are integer, float, string, boolean, array, object, resource and NULL. These data types are used to define …

Data Types in PHP Read More »

Constants in PHP

In this tutorial, we will learn about Constants in PHP. In the last tutorial, we learnt about variables in PHP. I hope now you would have a clear idea about variables. As we learnt in the last tutorial value of a variable can be changed throughout the program. but on the other hand value of constants …

Constants in PHP Read More »

Variables in PHP

In this tutorial, we will learn Variables in PHP. Variables are used to store data like to store string or number for example min_age=18. Value of variable can be changed several times throughout the code. It is so easy to define a variable in PHP just write $sign and then a variable name like this $min_age=18. …

Variables in PHP Read More »