使用此代码,我可以在 td-tag 中显示文本“Array”。我怎样才能得到真正的价值?
<tbody>
<tr>
<?php
$STH = $DBH->prepare("SELECT * FROM customers");
$STH->execute();
$result = $STH->fetchall();
foreach($result as $key => $value) {
echo "<td>$value</td>";
}
?>
</tr>
</tbody>