Web dev Javascript var_dump, print_r PHP like 11 years agoAdd Comment1 min read function var_dump(obj) { var res = ''; for (var i in obj) { res += i + ": " + obj[i] + "\n"; } return res; }