PHP Switch Switch syntax switch (x) { case x1: if x=x1 then execute statement break; case x2: if x=x2 then execute statement break; case x3: if x=x3 then execute statement break; … default: statement to be executed if x is not...
PHP IF – Else – Elseif Syntax if (condition) { if condition is true then execute statement } if (condition) { if condition is true then execute statement } else { if condition is false then execute statement } if (A)...
PHP Operators The Arithmatic Operators: Example Name Result $n + $z Addition Sum of $n and $z. $n – $z Subtraction Difference of $n and $z. $n * $z Multiplication Product of $n and $z. $n / $z Division Quotient of...