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|null $type = null): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $filerequired | string |
no default value |
| $data | mixed |
[ ]
|
| $type | stringornull |
null
|
Return type
bool