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

Explanation: Null coalescing operator returns fallback.

Explanation by: Roshan
Null coalescing operator returns fallback.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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