答案 0 :(得分:0)
<table>
<tr>
<th>Title</th>
<th>Name</th>
</tr>
<?php $value=null;
foreach($view as $key){
echo "<tr>";
if($key['title']==$value){
echo "<td></td>";
}
else{
echo "<td>".$key['title']."</td>";
$value=$key['title'];
}
echo "<td>".$key['Name']."</td>";
echo "</tr>";
}
?>