PHP Class Usps\XML2Array

Mostra file Open project: vinceg/usps-php-api

Public Methods

Method Description
createArray ( $input_xml ) : array Convert an XML string or DOMDocument to an Array.
init ( $version = '1.0', $encoding = 'UTF-8', $format_output = true ) Initialize the root XML node [optional].

Private Methods

Method Description
convert ( mixed $node ) : mixed Convert an Array to XML.
getXMLRoot ( ) : DOMDocument Get the root XML node, if there isn't one, create it.

Method Details

createArray() public static method

Convert an XML string or DOMDocument to an Array.
public static createArray ( $input_xml ) : array
$input_xml string|DOMDocument
return array

init() public static method

Initialize the root XML node [optional].
public static init ( $version = '1.0', $encoding = 'UTF-8', $format_output = true )
$version
$encoding
$format_output