我有一個php數組我想從中獲取特定的數據。通過PHP陣列
[vxs_data] => Array
(
[0] => Array
(
[data] => Array
(
[0] => fsafas
[1] => 603
[2] => 39
[3] => 81
[4] => 12
[5] => 43
[6] => 186
[7] => 97
[8] => 129
)
)
[1] => Array
(
[data] => Array
(
[9] => fsdfsa
[10] => 60
[11] => 30
[12] => 184
[13] => 12
[14] => 7
[15] => 176
[16] => 132
[17] => 119
)
)
[2] => Array
(
[data] => Array
(
[18] => fsafsa
[19] => 60
[20] => 3121
[21] => 18
[22] => 11
[23] => 0
[24] => 199
[25] => 140
[26] => 117
)
)
[3] => Array
(
[data] => Array
(
[27] => dada
[28] => 60
[29] => 27
[30] => 11
[31] => 22
[32] => 1
[33] => 22
[34] => 157
[35] => 98
)
)
[4] => Array
(
[data] => Array
(
[36] => ASKLMSDAS
[37] => 60
[38] => 232
[39] => 11
[40] => 23
[41] => 4
[42] => 32
[43] => 141
[44] => 98
)
)
這個數組的內容。我想獲得在表(TD)的數據,因此會是這樣:
<tr>
<td><a href="#">ASKLMSDAS</a></td><td>33</td>...
</tr>
<tr>
<td><a href="#">dada</a></td><td>33</td>...
</tr>
所以我想那些第一數據列,如「ASKLMSDAS」「達達」一個make鏈接。所以我需要做一些如果子句可能和foreach?
非常感謝和對我的英語感到抱歉。
如果'data'陣列將不會改變在表'td's'的記錄排序,你可以使用像水木清華'「