ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
$x = 5;
{
    $x = 10;
    echo "$x";
}
echo "$x";
?>

Answer & Solution
Correct Answer: Option A
Varibale x stores the value 10 and not 5.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.