πŸ“Š PHP
Q. What does the die() function do in PHP?
  • (A) Restarts the script
  • (B) Stops the script and prints a message
  • (C) Deletes variables
  • (D) Logs out a user
πŸ’¬ Discuss
βœ… Correct Answer: (B) Stops the script and prints a message

Explanation: die() is equivalent to exit() and optionally prints a message.

Explanation by: Rati Dubey
die() is equivalent to exit() and optionally prints a message.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
41
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
84%
Success Rate