Reference

Data::write()

Writes data to a file.

Data::write(string $file = null, array $data = [ ], string $type = null): bool

Parameters

Name Type Default Description
$file string null
$data array [ ]
$type string null

Return type

bool

Source code

kirby/src/Data/Data.php#L123