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 are trying to use a variable defined inside the function scope.
Use:
$thisXML; function do(){ global $thisXML; $thisXML = "foobar"; } print $thisXML;