Home >> PHP >> If else conditional statement in PHP

If else conditional statement in PHP

The if else condtional statement execute block of code when condition is true and another code execute condiotion false.


if (condition){
       Code to be executed
       Code to be executed


     echo "a is bigger than b";
     echo "a is not greater than b";

Post Your Comment

Next Questions
If else / else if conditional statement
Switch conditional statement
For loop
While loop
Do while loop
Foreach loop
Arithmatic operators
Assignment operators
Increment / Decrement Operators
Comparision Operators
Logical operators
Array Operators
addcslashes() function
addslashes() function
chunk_split() function
crc32() function
explode() function
implode() function
join() function
ltrim() function
md5() function
metaphone() function
money_format() function

Copyright ©2022 coderraj.com. All Rights Reserved.