πŸ“Š PHP
Q. What will be the output?
Code:
$a = 'Hello';
$b = &$a;
unset($b);
echo $a;
  • (A) Hello
  • (B) Error
  • (C) NULL
  • (D) Nothing
πŸ’¬ Discuss
βœ… Correct Answer: (A) Hello

Explanation: Unset removes reference, not original variable.

Explanation by: Roshan
Unset removes reference, not original variable.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
3
Total Visits
πŸ“½οΈ
8 d ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
84%
Success Rate