wrong
Debug客栈
Debug客栈 2018-11-01 14:44:25
0
2
1354

{:isset($role['rights']) && $role['rights'] && in_array($vo.mid,$role['rights'])?'checked':''}

错误提示:

in_array() expects parameter 2 to be array, string given



Debug客栈
Debug客栈

吃的苦中苦,方为人上人

reply all(2)
The Count of Monte Cristo

Is it a problem with cvo or json_decode

劳动者是第一生产力@鑫鑫@

var_dump($role['rights']) Check whether it is a string or array type

  • reply Thank you, solved
    Debug客栈 author 2018-11-02 17:14:54
  • reply It's because I'm too sloppy
    Debug客栈 author 2018-11-02 17:15:02
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template