Fatal error: Cannot use string offset as an array

前端 未结 2 1413
星月不相逢
星月不相逢 2021-02-06 17:54
  Array
(
    [0] => Array
        (
            [auth_id] => 1
            [auth_section] => Client Data Base
            [auth_parent_id] => 0
                     


        
2条回答
  •  北恋
    北恋 (楼主)
    2021-02-06 18:15

    You can test the offset type with the is_array() function. If you want a better answer, post the processing code. Test if $auth[$in] and $autsub[$g] are arrays.

提交回复
热议问题