Skip to content

Kirby 5.2.0

PHP::encode()

Converts data to PHP file content

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

Parameters

Name Type Default Description
$datarequired mixed no default value
$indent string '' For internal use only

Return type

string

Parent class

Kirby\Data\PHP