πŸ“Š PHP
Q. Which PHP 8 feature allows calling methods or accessing properties on null safely?
  • (A) Null Coalescing
  • (B) Nullsafe Operator
  • (C) Optional Chaining
  • (D) Safe Access
πŸ’¬ Discuss
βœ… Correct Answer: (B) Nullsafe Operator

Explanation: The nullsafe operator (?->) stops execution if the object is null.

Explanation by: Mr. Dubey
The nullsafe operator (?->) stops execution if the object is null.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
22
Total Visits
πŸ“½οΈ
3 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate