Q. What will be the output?

Code:
$a = '10';
$b = &$a;
$b = 20;
echo gettype($a);
  • (A) string
  • (B) integer
  • (C) double
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) integer
Explanation: Reference changes type of original variable.
Explanation by: Roshan
Reference changes type of original variable.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
14
Total Visits
πŸ“½οΈ
3 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
88%
Success Rate