Tag

PHP

PHP Syntax

In this PHP syntax guide, you will learn how to write PHP tags. PHP can be embedded in the document with HTML markups. Before getting started, we should know that the file of the PHP document is ending with “.PHP” as an extension and how the PHP interprets the source code. Actually, there are many

PHP Variables

The PHP variables are the identifier names that allow us to store the data type inside it, such as strings, integers, arrays, objects, floats, and so on. Read the PHP data types tutorial to learn more about the data types. Anyway, the PHP variable should start with a dollar sign – “$”. But there are

PHP Comments

In this tutorial, you will learn how to write the PHP comments inside your PHP source code. The PHP comment is a block or line created to specify a description to be helpful for another developer who is working on the same project. The PHP comments can take two different shapes, such as multiline comments

PHP Type Casting

In this article, you will understand the PHP type casting and how to get the type of variable values. So before getting started you have to know what are PHP data types. Anyway, the PHP data types are ten primitive data types used to define the PHP variable values. Such as integer, string, float, boolean,

PHP Hello World

In this article, you will learn how to write the first PHP program to print Hello world. Firstly, to learn more about how PHP works, you have to read what is PHP program tutorial. The PHP scripting language has an interpreter, that depends on four phases to compile the PHP source code. And that can

PHP Spaceship Operator

The PHP spaceship operator used to compare two expressions according to 3 factors which are: less than, greater than, and equal to. This feature appeared in PHP 7. In this quick tutorial, you will understand what is the PHP spaceship operator and how to use it with all PHP data types. Let’s get started. The

PHP NOT Operator

PHP NOT (!) operator is one of the logical operators that To demonstrate the opposite of true or false value according to the operand result. The PHP NOT operator is also written as a “NOT“ keyword OR “!” in the condition block. Let’s take an example. The condition block means the $is_correct takes a false

PHP Type Juggling

In this article, you will understand what is PHP type juggling and how it does work. But before you do that, you have to learn more about PHP data types. Basically, During the program translation, there are some defined variables with the data type and these data types are already changed to another data type

PHP Comparison Operators

In this tutorial, you will understand the PHP comparison operators such as strict operators, loose operators, not equal operators, identical operators, not identical operators, greater than operators and so many else. This concept can be defined as the comparison of any two values has the same data type values or different data types. And that to

PHP OR Operator

PHP or operator (||) is a logical operator which allows more than operand, if one of these operands has a correct result, it will return true. if else, it will return false. The following image shows you how it does work. As you saw in the previous diagram, if only one way is correct, so