I'm currently working on a PHP project and I'm trying to debug my code. I came across the `error_log()` function in PHP, but I'm not entirely sure how it works and how I can use it in my code. Can someone please explain the `error_log()` function to me and provide an example of how to use it effectively?
I'm facing some issues with my code where certain errors are not being displayed on the webpage, so I'm hoping that using the `error_log()` function might help me identify and troubleshoot these errors. Any insights or best practices on using this function would be greatly appreciated!
Thanks in advance!