Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

致命错误: [] operator not supported for strings #9

Open
hzdok opened this issue May 15, 2019 · 1 comment
Open

致命错误: [] operator not supported for strings #9

hzdok opened this issue May 15, 2019 · 1 comment

Comments

@hzdok
Copy link

hzdok commented May 15, 2019

请求模块:/admin/users/index
请求主体:page=1&limit=15&search=&structure_id=2&status=all
具体代码:
$groups = '';
$groupids = '';
foreach ($groupsArr as $key=>$val) {
$groups[] = $val['title'];
$groupids[] = $val['id'];
}
错误说明:$groups = '';$groupids = '';定义为字符类型,后面以数组操作导致报错。。。

@gengxiaoxu
Copy link

gengxiaoxu commented May 15, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants