Skip to content

Kirby 5.2.0

PHP::write()

Creates a PHP file with the given data

PHP::write(string $file, $data = [ ]): bool

Parameters

Name Type Default
$filerequired string no default value
$data mixed [ ]

Return type

bool

Parent class

Kirby\Data\PHP