0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.143.241.205


Current Path : /var/www/website/nublr/Regulations/simplehtmldom/manual/docs/api/HtmlDocument/
Upload File :
Current File : /var/www/website/nublr/Regulations/simplehtmldom/manual/docs/api/HtmlDocument/save.md

---
title: 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.