/** * Encodes PHP array into XML, primitive values are not supported because XML * requires a root document (tag). * * @param {void*} $value Any arbitrary PHP value. * @return {string} XML version of specified PHP value. */ public static function xml(array $value) { return XMLConverter::toXML($value); }