PHP: Function in Displaying All Errors

If you don’t want to catch all errors individually, why not use an Array() of errors you might encounter? This function accepts an array of errors, loop through each of them then return it and display.

 

Sharing is caring!