Skip to content

Kirby 4.3.0

Xml::encode()

Converts an array to an encoded XML string

Xml::encode($data): string

Parameters

Name Type Default
$data * mixed

Return type

string

Parent class

Kirby\Data\Xml