用print_r打印出来的数组是这样的:Array([total]=>8[rows]=>Array([0]=>Array([id]=>1[email]=>379395979@qq.com[activated]=>1[username]=>yuan[created_at]=>2014-03-0402:30:43为什么使用json_encode输出之后其他的数据都好的,就只有activated这个字段会把1的变成true,0的变成false,有人遇到过这个情况吗?该怎么解决才能输出原始的值。。。框架是laravel4json值像这样:{"total":8,"rows":[{"id":1,"email":"379395979@qq.com","activated":true,"activated_at":null,"last_login":"2014-04-0305:41:30","username":"yuan","created_at":"2014-03-0402:30:43"}
守着一只汪
守候你守候我
相关分类