Skip to content

Kirby 6.0.0

F::read()

Reads the content of a file; returns false for URLs and files that don't exist

F::read(string $file): string|false

Parameters

Name Type Default
$filerequired string no default value

Return types

stringorfalse

Parent class

Kirby\Filesystem\F