Published in: ActionScript
private function print_r( obj, indent ) { if (indent == null) indent = ""; var out = ""; for ( item in obj ) { if (typeof( obj[item] ) == "object" ) out += indent+"[" + item + "] => Object\n"; else out += indent+"[" + item + "] => " + obj[item]+"\n"; out += print_r( obj[item], indent+" " ); } return out; }
You need to login to post a comment.
