f::write

Creates a new file

f::write($file, $content, $append = false)

Parameters

$file (string)
The path for the new file
$content (mixed)
Either a string, an object or an array. Arrays and objects will be serialized.
$append (boolean)
true: append the content to an exisiting file if available. false: overwrite.

Return values

boolean