php debug / 调试方法 var_export var_dump print_r
var_export 将变量描述,转换为字符串
1 2 3 4 5 | var_export ($some_var, TRUE) // 有时 var_export 不行,报错:“var_export does not handle circular references”, // 用serialize试试,将变量描述,转换为字符串 serialize($some_var) |
1 2 3 4 5 | var_export ($some_var, TRUE) // 有时 var_export 不行,报错:“var_export does not handle circular references”, // 用serialize试试,将变量描述,转换为字符串 serialize($some_var) |