πŸ“Š PHP
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Result1: 5 , Result2:

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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