PHP MYSQL LESSON 5 (Part 1) OPERATORS IN PHP

  • Share
    Share Video

  • Add
  • More
    Report this video as:
0 0
You have already voted for this video.
The reason for the two different variations of "and" and "or" operators is that they operat...
The reason for the two different variations of "and" and "or" operators is that they operate at different precedences. (See Operator Precedence.) Example #1 Logical operators illustrated. <?php // -------------------- // foo() will never get called as those operators are short-circuit $a = (false && foo()); $b = (true || foo()); $c = (false ...
Related