Php loop output form?

Array of loops
Array
(
    [0] => Array
        (
            [field_id] => 368
            [model] => customer
            [is_main] => 0
            [field] => age_group
            [name] => 
            [form_type] => box
        )
    [1] => Array
        (
            [field_id] => 370
            [model] => customer
            [is_main] => 0
            [field] => trade
            [name] => 
            [form_type] => box
        )
   [2] => Array
        (
            [field_id] => 374
            [model] => customer
            [is_main] => 0
            [field] => biz_scope
            [name] => 
            [form_type] => text
         )
   [3] => Array
        (
            [field_id] => 375
            [model] => customer
            [is_main] => 0
            [field] => annual_turnover
            [name] => 
            [form_type] => box
       )
)
output the form of the table
                         <tr>
                            <td class="tdleft" width="9%">:</td>
                            <td colspan="3"  width="41%"> 25-50</td>
                            <td class="tdleft" width="9%">:</td>
                            <td colspan="3"  width="41%"></td>
                        </tr>
                          <tr>
                            <td class="tdleft" width="9%">:</td>
                            <td colspan="3"  width="41%"></td>
                            <td class="tdleft" width="9%">:</td>
                            <td colspan="3"  width="41%">1000</td>
                        </tr>
how do I loop through the volist tag of thinkphp to control a < tr > as shown above?
Mar.05,2021

thanks for the invitation. You can try array_column to extract a single column and render it in a loop to the view.

< hr >

I'm not familiar with ThinkPHP. I wrote a native one at hand. Look at it and change it.

  

just combine the numbers into an one-dimensional array and output them directly

Menu