Q. What will be the output?

Code:
$a = 1;
$b = &$a;
$c = &$b;
$c = 5;
echo $a;
  • (A) 1
  • (B) 5
  • (C) Error
  • (D) NULL
πŸ’¬ Discuss
βœ… Correct Answer: (B) 5
Explanation: All variables reference same value.
Explanation by: Roshan
All variables reference same value.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
32
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
92%
Success Rate