How to traverse multi-dimensional array in tp5.
SoGun
SoGun 2021-01-03 23:24:34
0
1
1545

There is an array.

Array( [ids] => Array ( [0] => 1 [1] => 2 [2] => 3) [num] => Array (          [0] = > 2                                                                         [2] =  

ids=1

num=2

)

Array(

ids=2

num=3

)

Array(

ids=3

num=1

)

SoGun
SoGun

reply all(1)
天蓬老师

You can use multiple loops or flatten the array. This is basic knowledge of PHP and has nothing to do with TP

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template