F::write()
Creates a new file
F::write(string $file, mixed $content, bool $append = false): bool
Parameters
Name | Type | Default | Description |
---|---|---|---|
$filerequired | string |
no default value | The path for the new file |
$contentrequired | mixed |
no default value | Either a string, an object or an array. Arrays and objects will be serialized. |
$append | bool |
false
|
true: append the content to an existing file if available. false: overwrite. |
Return type
bool