I would like to skip an error rather than ending the script in PHP. The error is triggered by a script and not a built in PHP error. I was wondering whether someone here might help me with the code. I know this can be done with PHP Exception Handling. But I would like someone to help me with the code. My code structure is: if (skip_this_error()){ //Statements. } I would like to skip the skip_this_error() function if it generates an error. This is only an example.
Ok.. Ok.. I will show you how to do it. try { //My code if (skip_this_error()){ //Statements. } } catch(Exception $e) { //Do nothing } That's how you do it...