Tag

PHP

PHP Assignment Operators

In general, the PHP assignment operators can be used to assign new values into PHP variables and that can be done using the equal operator (=) and some other operators else. In other words, the PHP assignment operators are used to set a new value to a PHP variable. So, the most common operator is

PHP Switch

The PHP switch statement is multiple conditions to only execute one block if its condition generating a true boolean value. The PHP switch can also be replaced of PHP Else if statement in the control flow. So when one condition is achieved, it will execute the block. Anyway, to summarize that, the PHP switch contains

for

The PHP for loop used to execute the code several times during the stack and that is happening according to the dynamic data. The PHP for loop can be written as the following syntax The following list shows you the details of the for loop expression : Expression 1 (Start): This expression would be executed

else

The PHP else block can be used if the condition failed to achieve the the true result and that leads the current process to execute the other block in else statement. Let’s see the basic syntax. So, if the main IF condition has a false result, it will execute the bottom block in else {

if

In this tutorial, you will understand the IF Statement in PHP with examples. The IF Statement in PHP used to check if the expression is producing a true boolean value or not, to lead the script to another task during the execution. The IF Statement in PHP can be written as the following. It executes

else if

The PHP ELSE IF is used to expose the boolean value for another condition in the same track. So if the main if condition showing a false boolean result value. It will check for another one with ELSE IF condition. The PHP ELSE IF used to check if the expression is producing a true boolean

PHP Increment and Decrement Operator

The increment and decrement are operators that can be used to increase or decrease the variable values which have a string or an integer as a data type in PHP. That means the increment and decrement operators are not working with objects, arrays, Booleans, and other data types. The used operators in PHP are the

Null Coalescing Operator

The PHP null coalescing operator (??) is a new feature of PHP7. The purpose of this feature to allow you set a primary default value if main operand display undefined or null value. The PHP null coalescing operator uses this this operator “??” between the default value and the potential value for the operation. For

PHP Arithmetic Operators

The arithmetic in PHP means all number types that can be calculated through the common arithmetic operators such as multiplication, addition, subtraction, division, modulus, and the exponentiation. Before getting started, you have to know what PHP integer is and understand the PHP INT types. You can learn more about it through this link. In the

PHP Bitwise Operators

The PHP bitwise operators are comparing two numbers according to their bits, which mean getting a decimal number of two values according to the binary bits ( 0s, 1s ). For a quick example. In the previous example, the comparing was for two binaries like this 00001010 for 10 and 00001011 for 11. Our mission