-4
創建HTML表我想從PHP關聯數組從關聯數組
創建表這是我的代碼:
$itemspecifics = array(
"Condition" => "New",
"Year" => "2007",
"Manufacturer" => "Audi",
"Model" => "A4",
"Type" => "Limousine",
"Options" => "Full"
);
我想生成一個表,但這種格式:
<table width="779" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="104">Condition</td>
<td width="318">New</td>
<td width="176">Year</td>
<td width="171">2007</td>
</tr>
<tr>
<td>Manufacturer</td>
<td>Audi</td>
<td>Model</td>
<td>A4</td>
</tr>
<tr>
<td>Type</td>
<td>Limousine</td>
<td>Options</td>
<td>Full</td>
</tr>
</table>
什麼是您的具體問題? – armadadrive
我們不會爲你的功課工作 – kimbarcelona