Skip to content

Kirby 4.2.0

PHP::encode()

Converts an array to PHP file content

PHP::encode($data, string $indent = ''): string

Parameters

Name Type Default Description
$data * mixed
$indent string '' For internal use only

Return type

string

Parent class

Kirby\Data\PHP