PHP two dimensional array into HTML

后端 未结 3 615
逝去的感伤
逝去的感伤 2020-12-15 01:36

A simple Google search will reveal a multitude of solutions for converting a two dimension array into HTML using PHP. Unfortunately none of these has the answers I am lookin

3条回答
  •  伪装坚强ぢ
    2020-12-15 02:26

    Your loops will be something like this:

    foreach($myArray as $k => $v)
    

    In $k you'll kave the key, in $v the value... Then you can print both.

提交回复
热议问题