Q:

What will be the output of the following PHP code ?

belongs to collection: OBJECT TOOLS AND VARIABLES IN PHP MCQ

0

What will be the output of the following PHP code ?

<?php
$x = -1;
$y = 1;
$z = $x * $y + $z;
echo $z;
?>

  1. Undefined variable z
  2. -1
  3. Undefined variable z -1
  4. None of the mentioned

All Answers

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

(c).Undefined variable z
-1

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

total answers (1)

OBJECT TOOLS AND VARIABLES IN PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What will be the output of the following PHP code ... >>
<< What will be the output of the following PHP code ...