Reference

Guide

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

Source code

kirby/src/Toolkit/F.php#L114