Skip to content

Kirby 4.1.2

Data::write()

Writes data to a file; the data handler is automatically chosen by the extension if not specified

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

Parameters

Name Type Default
$file * string
$data mixed [ ]
$type string|null null

Return type

bool

Parent class

Kirby\Data\Data