PHP CONDITION



PHP Conditional Statements  In many ways PHP's methods of handling conditional statements (if) is exactly the same as C/C++. All of the if-related logical operators are the same, although they've added a couple of more for convenience:  < > <= >= == != ! && || AND OR  With the addition of the word versions of AND and OR, conditional statements can now be written more like English:  if ($num1 < $num2 AND $num3 == $num4)  if ($a == 'Sample' OR $data < 200).
Share on Google Plus

About M

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.

0 comments:

Post a Comment