Illegal string offset 'id'报错
其实就是变量不存在或者赋值的时候类型不一致导致
如
$where = ''; $where['id'] = 1;
这时候代码就会报错
Illegal string offset 'id'
解决办法,把上面的代码换成
$where = []; $where['id'] = 1;
上一篇 Centos系统搭建git服务器用法
下一篇 mysql 报错:Using a password on the command line interface can be insecure.用法
版权所有 ©2023-2025 051e.com
ICP备案号:京ICP备12030808号