Array and string offset access syntax with curly braces is deprecated thinkPHP5 查询Mysql7.4版本问题

缘由是由于MySQL7.4版本再也不支持{}写法,统一为数组[ ],解决很简单经过修改tp5的Query.php文件的字段中php

$seq = (ord($value{0}) % $rule['num']) + 1; 的$value{0}大括号改成$value[0]数组

 

 

相关文章
相关标签/搜索