Discussion :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
$auth = 1;
$status = 1;
if ($result = (($auth == 1) && ($status != 0)))
{
print "result is $result";
}
?>
Answer : Option B
Explanation :
Result is x&&y which returns 1 if both x and y are true.
Be The First To Comment