CodeIgniter v4.7 API

XMLFormatter
in package
implements FormatterInterface

XML data formatter

Table of Contents

Interfaces

FormatterInterface
Formatter interface

Methods

format()  : false|non-empty-string
Takes the given data and formats it.
arrayToXML()  : void
A recursive method to convert an array into a valid XML string.
normalizeXMLTag()  : string
Normalizes tags into the allowed by W3C.

Methods

format()

Takes the given data and formats it.

public format(mixed $data) : false|non-empty-string
Parameters
$data : mixed
Return values
false|non-empty-string
On this page

Search results