Hi everyone,
I am new to PHP and trying to get a better grasp of error handling. I know there are different types of errors like notices, warnings and fatal errors but I am not quite sure how to handle them properly in my code....

Can someone explain the basics of error handling in PHP for a beginner like me. What is the best way to catch and manage these errors. Should I use try and catch blocks, or are there better practices. Any advice or examples would be greatly appreciated
I also searched this topic on this site https://stackoverflow.com/questions/11894115/best-way-to-handle-errors-on-a-php-pagesap-sac but I could not found anything helpful.
Thanks in advance

Best,
[Nancy]

    naancyrroy Thank you for the question, but I'm unsure if this is the right place to ask generic PHP questions though.

    The stack overflow you've referenced gives you probably better answers; since this is rather a complex topic.

      Write a Reply...