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

Code:
<?php
$x = 5;

function myFunction(){
    echo "Result $x";
}
myFunction();
?>
  • (A) Result $x
  • (B) Result 5
  • (C) Result
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) Result

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
192659
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
98%
Success Rate