Q:

What will be the output of the following PHP code ?

0

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<br />";
}
?>

  1. result is true
  2. result is 1
  3. error
  4. no output

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(b).result is 1

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now