Skip to content

Kirby 4.1.2

F::append()

Appends new content to an existing file

F::append(string $file, mixed $content): bool

Parameters

Name Type Default Description
$file * string The path for the file
$content * mixed Either a string or an array. Arrays will be converted to JSON.

Return type

bool

Parent class

Kirby\Filesystem\F