如何获取$table->json数组某个数据?
保存方式 $table->json(‘status’) 含 [1:11,2:{21,23},5:57]
提取 11
$s1 = $this->status[1]
提取 23
$s2 = $this->status[2][1]
返回结果 null
json_decode($this->status)[1][0] 同样 null
不知哪里出了问题?谢谢提示!
推荐文章: