ExamVeda
Login
Home
Operators and Expressions in php
?

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 & Solution
Correct Answer: Option B
Result is x&&y which returns 1 if both x and y are true.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.