libxml_get_errorsRetrieve array of errors Description
array libxml_get_errors()
Retrieve array of errors. ParametersThis function has no parameters. Return ValuesReturns an array with LibXMLError objects if there are any errors in the buffer, or an empty array otherwise. Examples
Example #1 A libxml_get_errors example This example demonstrates how to build a simple libxml error handler.
The above example will output: <titles>PHP: Behind the Parser</title> ----------------------------------------------^ Fatal Error 76: Opening and ending tag mismatch: titles line 4 and title Line: 4 Column: 46 -------------------------------------------- See Also
|