TwistPHP Documentation

arrayToXML

File path: dist/twist/Core/Utilities/XML.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

arrayToXML

Parameters

Name Type Description
$arrDataarrayn/a
[$strRootNode = 'node']stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$arrData = array(=> 'foo'=> 'bar');
$strRootNode 'node';

//Call the function arrayToXML with the example vars
Twist::XML() -> arrayToXML($arrData$strRootNode);