Category PHP

Data Types in PHP

PHP data types: Scalar, Compound, and Special data types.

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

Syntax to define and initialize the value of 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…

PHP Echo Statement

In this tutorial, we will understand the echo statement in PHP and its usage with the help of examples. PHP provides two basic ways to display output data in the browser. You can use any of the two statements in…

Comments in PHP: Single Line, Multi-line

Comments in PHP or any other programming languages are statements that are used to explain any line of code. They make the program code more understandable. Comments are not considered as a part of the program. They are used for…