I\'m building an XML page inside of a function, and for some strange reason I don\'t get the whole thing spit out of the function. I\'ve tried
return $thisX
You need to invoke the function!
$thisXml = 'xml declaration stuff'; echo getThisXML($thisXML);
Or pass the variable by reference:
$thisXml = 'xml declaration stuff'; function getThisXML(&$thisXML){ ... return $thisXml; } getThisXML($thisXML); echo $thisXml;