?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$x = 5;
{
$x = 10;
echo "$x";
}
echo "$x";
?>
<?php
$x = 5;
{
$x = 10;
echo "$x";
}
echo "$x";
?>
Answer & Solution
Correct Answer:
Option
A
Varibale x stores the value 10 and not 5.
Join the Discussion
Login to post a comment or share your explanation.
Login