¡@

Home 

php Programming Glossary: sxml

Can't access global variable inside function

http://stackoverflow.com/questions/5449526/cant-access-global-variable-inside-function

This simplified version of my code doesn't work php sxml new SimpleXMLElement ' somexml ' function foo child sxml addChild.. sxml new SimpleXMLElement ' somexml ' function foo child sxml addChild 'child' foo Why I want to access sxml because I want.. foo child sxml addChild 'child' foo Why I want to access sxml because I want to log errors on it if foo fails. foo calls itself..