PHP » Operators » &&

Syntax:
expression1 && expression2
expression1
First operand.
expression2
Second operand.

Logical AND.

The logical AND operator returns TRUE if both operands evaluate to TRUE.

Examples

Code:
<?php

if (TRUE && TRUE)
   if (1 && 0 == 0)
      print "TRUE!";

?>
Output:
TRUE!
Explanation:

The expressions in the if statements evaluate to TRUE.