πŸ“Š PHP
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

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