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()