Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一张这样的桌子:
<table> <?php foreach($var as $val): ?> <tr> <?php foreach($val as $row): ?> <td> ... </td> <?php endforeach; ?> </tr> <?php endforeach; ?> </table>
我怎样才能用小胡子编码呢?
假设您正在使用KOstache模块,Kostache::factory()并在控制器中分配多维数组。然后使用隐式迭代器遍历所有元素。
Kostache::factory()