My Blog

My WordPress Blog

My Blog

My WordPress Blog

02. Operators

Null Coalescing Operator

The Null Coalescing operator is one of the many new features introduced in PHP 7. The word “coalescing” means uniting many things into one. This operator is used to replace the ternary operation in conjunction with the isset() function. Ternary Operator in PHP PHP has a ternary operator represented by the “?” symbol. The ternary operator compares […]

Assignment Operators Examples

You can use assignment operators in PHP to assign values to variables. Assignment operators are shorthand notations to perform arithmetic or other operations while assigning a value to a variable. For instance, the “=” operator assigns the value on the right-hand side to the variable on the left-hand side. Additionally, there are compound assignment operators […]

Logical Operators Examples

In PHP, logical operators are used to combine conditional statements. These operators allow you to create more complex conditions by combining multiple conditions together. Logical operators are generally used in conditional statements such as if, while, and for loops to control the flow of program execution based on specific conditions. The following table highligts the logical operators that […]

Operators Types

What are Operators in PHP? As in any programming language, PHP also has operators which are symbols (sometimes keywords) that are predefined to perform certain commonly required operations on one or more operands. For example, using the expression “4 + 5” is equal to 9. Here “4” and “5” are called operands and “+” is called an operator. We […]

Scroll to top