1.

Give the Syntax for If else if else statements in php?

Answer»

if (1st condition)

{

Execute statement(s) if condition is true;

}

elseif(2nd condition)

{

Execute statement(s) if 2nd condition is true; 

}

else

{

Execute statement(s) if both conditions are false;

}



Discussion

No Comment Found