1.
What function is commonly used to log errors to a file in PHP?
2.
Which PHP construct is used for exception handling?
3.
What is the purpose of the error_reporting() function in PHP?
4.
How can you enable error logging to a file in PHP?
5.
Which PHP library is commonly used for advanced logging functionalities?
6.
What does the display_errors directive control in PHP?
7.
Which PHP function is used to trigger a user-defined error?
8.
What is the primary benefit of using exception handling over traditional error handling?
9.
Which PHP function is used to catch and handle exceptions?
10.
What is the purpose of logging errors and exceptions in PHP applications?