```php
dump ( [ bool show_attr = true ] ) : string
```

Dumps the entire DOM into a string. Useful for debugging purposes.

| Parameter   | Description                                       |
|-------------|---------------------------------------------------|
| `show_attr` | Attributes are included in the dump when enabled. |

Returns the DOM tree as string.