Arrays in PHP

In simple words, an Array is a variable that makes us able to store more than one same kind of value 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. But it makes your code so complicated and It

Arrays in PHP Read More »

Operators in PHP

Operators are special symbols that tell to PHP processor to do some special operations. For example, there is a + operator which tells PHP Processor to add two numbers (4+5). There are various operators available in PHP and they are divided into some categories. List of Categories: Arithmetic Operators Comparison Operators Assignment Operators Inc/Dec Operators Logical Operators

Operators in PHP Read More »

Strings in PHP

The string is commonly described as a collection of characters. Mean a string can be a collection of numbers, alphabets, or special symbols for example “Hello World”. In PHP you can define a string in the program in two ways by using single quotes(‘ ‘) or by using double(” “) quotes. Here we learn about

Strings in PHP Read More »

Data Types in PHP

PHP supports 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 what kind of data a variable can store. Now we will check out every data type in detail with the help of examples. Integer: – In an integer

Data Types in PHP Read More »

Constants in PHP

We already learned about variables. I assume you would have a clear idea about variables. As we know the value of a variable can be changed numerous times throughout the program. but on the other hand value of constants can not change. Constants are also used to store data like variables but once constants get initialized values can not

Constants in PHP Read More »

Variables in PHP

Variables are used to store data like strings or numbers for example min_age=18. The value of the variable can be changed numerous times throughout the code. It is so easy to define variables in PHP just write $sign and then a variable name like this $min_age=18. You do not even need to mention the data type

Variables in PHP Read More »

Introduction to PHP

In this tutorial, we will learn an introduction to PHP. PHP stands for Hypertext preprocessor and it is a well-known language for developing web applications. In short definition, PHP is a server-side, open-source technology used to develop web applications. Web applications help us process data on the server side and generate dynamic web pages for clients.

Introduction to PHP Read More »

×