Adsense 728 * 15


Custom Search

If-Else in PHP

If-Else in PHP

if-else statement is used when we want to make choice to be made between two possible alternatives.

Example of If-Else -



 //check whether secondnumber is greater than firstnumber or not
echo "Second number is greater"; //if secondnumber is greater then it print this statement
echo "First number is greater";

For Loop in PHP

No comments:

Post a Comment