There are two arrays of Autha and AUTHB
Autha as follows
1 Array2 (3[0] = =Array4 (5[auth_id] = 16[auth_name] =Article Management7[auth_pid] = 08[auth_c] =9[auth_a] =Ten[auth_level] = 0 one ) a -[1] = =Array - ( the[auth_id] = 4 -[auth_name] =System Settings -[auth_pid] = 0 -[auth_c] = +[auth_a] = -[auth_level] = 0 + ) a at)
AUTHB as follows
1 Array2 (3[0] = =Array4 (5[auth_id] = 26[auth_name] =List of articles7[auth_pid] = 18[auth_c] =article9[auth_a] =IndexTen[auth_level] = 1 one ) a -[1] = =Array - ( the[auth_id] = 3 -[auth_name] =Add an article -[auth_pid] = 1 -[auth_c] =article +[auth_a] =Add -[auth_level] = 1 + ) a at[2] = =Array - ( -[auth_id] = 5 -[auth_name] =Site Configuration -[auth_pid] = 4 -[auth_c] =Config in[auth_a] =Index -[auth_level] = 1 to ) + -[3] = =Array the ( *[auth_id] = 6 $[auth_name] =Site BackupPanax Notoginseng[auth_pid] = 4 -[auth_c] =Config the[auth_a] =Bak +[auth_level] = 1 a ) the +)
The correct loop code is
If you change vv to authb, a bug will Occur.
If you change to another non-authb, the problem will not occur
ThinkPHP3.2.3 foreach nested loop bug