Hyvor Developer
  Home   Download   Copy
Code
<?php
$a = true;
$b = true;
if ($a && $b) {
	echo 'Both $a and $b are true';
}

$a = false;
$b = true; 
if ($a && $b) {
	echo 'This is not echoed because $a is false';
}
Result