?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$a = 1;
if ($a--)
print "True";
if ($a++)
print "False";
?>
<?php
$a = 1;
if ($a--)
print "True";
if ($a++)
print "False";
?>
Answer & Solution
Correct Answer:
Option
A
Due to post increment and post decrement only the first condition is satisfied.
Join the Discussion
Login to post a comment or share your explanation.
Login