这是我的多维数组即将做出3x5表,我知道我必须使用foreach,但我不明白从哪里去,这里有人有什么建议吗?我怎样才能为这个数组创建一个表?
<table>
<?php
$something = array(
array("firma" => "ASG",
"selskap" => "ABG Sundal Collier",
"siste" => 5.95
),
array("firma" => "AFG",
"selskap" => "AF Gruppen",
"siste" => 122
),
array("firma" => "AKVA",
"selskap" => "AKVA Group ",
"siste" => 47.2
),
array("firma" => "AGA",
"selskap" => "Agasti Holding",
"siste" => 1.2
),
array("firma" => "AKA",
"selskap" => "Akastor",
"siste" => 6.04
),
);
?>
</table>
重复:http://stackoverflow.com/questions/4746079/how-to-create-a-html-table-from-一个-PHP-阵列 – JustBaron