Data::write()
Writes data to a file; the data handler is automatically chosen by the extension if not specified
Data::write(string $file, $data = [ ], ?string $type = null): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $file * | string |
– |
| $data | mixed |
[ ] |
| $type | string|null |
null |
Return type
bool