Skip to content

Kirby 6.0.0

F::append()

Appends new content to an existing file

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

Parameters

Name Type Default Description
$filerequired string no default value
$contentrequired mixed no default value Either a string, an object or an array. Arrays and objects will be serialized.

Return type

bool

Parent class

Kirby\Filesystem\F