View file core/libs/htmlParser/manual/docs/api/simple_html_dom/save.md

File size: 259B
# save

```php
save ( [ string $filepath = '' ] ) : string
```

Writes the current DOM to file.

| Parameter     | Description
| ---------     | -----------
| `filepath`    | Writes to file if the provided file path is not empty.

Returns the document string.