Comments in PHP

Comments are not used to perform any function in the program but are useful for developers. Developers can write comments with variables and functions to remember their working (purpose) in the program. One important thing to mention is that comments don’t have any impact on the execution of the program. Types of Comments: Single Line comments Multi-Line comments Single-Line

Comments in PHP Read More »

GET and POST in PHP

The web browser communicates with the web server by using two HTTP methods GET and POST. These methods are used to send information to the web server. Here we will learn about these methods and the difference between these two methods. GET method: When we use the GET method it sends data to the web

GET and POST in PHP Read More »

Function in PHP

In very simple language a function is a block of code that 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 to write code

Function in PHP Read More »

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 »

×