Q. Which PHP operator is called the null coalescing operator?

  • (A) ?:
  • (B) ??
  • (C) &&
  • (D) ||
πŸ’¬ Discuss
βœ… Correct Answer: (B) ??
Explanation: ?? returns the first operand if it exists and is not null.
Explanation by: Yami Thakur
?? returns the first operand if it exists and is not null.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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