libxml_get_errors
En esta página
libxml_get_errors
Lee el array de errores
Descripción#
libxml_get_errors(): array
```php
Devuelve un array de errores.
## Parámetros
Esta función no contiene ningún parámetro.
## Valores devueltos
`libxml_get_errors` devuelve un array con los objetos `LibXMLError` que representan los errores, o bien un array vacío si no hay errores.
## Ejemplos
Ejemplo con `libxml_get_errors`
Este ejemplo muestra cómo crear un gestor de errores libxml simple.
```php
El ejemplo anterior mostrará:
<titles>PHP: Behind the Parser</title>
----------------------------------------------^
Error fatal 76: Opening and ending tag mismatch: titles line 4 and title
Línea: 4
Columna: 46
--------------------------------------------
Véase también#
libxml_get_last_error, libxml_clear_errors