How To Create a Code Block in PHP for Error Handling

Author: , October 19th, 2012

The do/while statement is sometimes used to break out of a block of code when an error condition occurs. For example: 1 2 3 4 5 6 do {   // do some stuff   if ($error_condition)     break;   // do some other stuff } while (false); do { // do some stuff […]