Setting the directive display_errors to true (while having error_reporting set to E_ALL) prints all errors that occured durin
display_errors
true
error_reporting
E_ALL
Catch the errors as you go and output messages at the end.
getMessage; } try{ // next bit of code to test } catch(\Exception $e) { $errors[] = $e->getMessage; } ... // display all messages at the end echo "\n\n"; print_r($errors); echo "\n\n";
\n"; print_r($errors); echo "\n