function print_r(input) { var ret; for(var i in input) { ret += “[“+i+”] = “+input[i]+”n”; } alert(ret); }