R

Ram Sharma • 193.86K Points
Coach

Q. What will be the output of the following PHP code?

Code:
<?php
function myFunction()
{
    $x = 5;
    echo "Result1: $x , ";
}
myFunction();
echo "Result2: $x";
?>
  • (A) Result1: 5 , Result2:
  • (B) Result1: 5 , Result2: 0
  • (C) Result1: 5 , Result2: 5
  • (D) None of the above

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.