if if echo and else echo if if echo and else echo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<?
$x = 1;
$y = 1;
if($x == 1)
if($y == 1)echo("x=1 and y=1");
else echo("x!=1");
?>
<?
$x = 1;
$y = 1;
if($x==1)
{
if($y==1)echo("x=1 and y=1");
}
else echo("x!=1");
?>