When returning $ query-> result_array ();
Someday I get several single arrays, for example:
Array ( [user_id] => 32 [username] => johnd [cat_id] => 7 ) Array ( [user_id] => 33 [username] => Janed [cat_id] => 6 )
Sometimes I get multidimensional arrays like this:
Array ( [0] => Array ( [user_id] => 33 [username] => Janed [cat_id] => 6 ) [1] => Array ( [user_id] => 32 [username] => Johnd [cat_id] => 7 ) )
This has something to do with the request, is there a specific criterion for this?
source share