Q. What will be the output of: echo null ?? 'PHP';

  • (A) null
  • (B) PHP
  • (C) Error
  • (D) 0
πŸ’¬ Discuss
βœ… Correct Answer: (B) PHP
Explanation: Null coalescing operator returns the right value if the left is null.
Explanation by: Yami Thakur
Null coalescing operator returns the right value if the left is null.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
44
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Yami Thakur
Publisher
πŸ“ˆ
90%
Success Rate