PHP
php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
// check the output of this program
$b= 0;
$c = 1;
function get($x){
return $x;
}
//assignment in if, not comparison is that i
// want to show!!
if($a = get($b)){
echo 1;
}
if($a = get($c)){
echo 2;
}
?>
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run