Skip to content

Kirby 4.1.2

Data::read()

Reads data from a file; the data handler is automatically chosen by the extension if not specified

Data::read(string $file, ?string $type = null): array

Parameters

Name Type Default
$file * string
$type string|null null

Return type

array

Parent class

Kirby\Data\Data