Skip to main content

PHP - The if Statement

 The if statement executes some code if one condition is true.

Syntax


if (condition) {
  // code to be executed if condition is true;
}

Example

if (5 > 3) {
  echo "Have a good day!";
}

Comments

Popular posts from this blog

php first run code !!

 This is new Happy felling about learn PHP !