我已经像这样使用 PDO 进行了 mysql 查询
$timestamp_query = "SELECT timestamp FROM change_me;";
foreach ($conn->query($timestamp_query) as $times ) {
print_r($times);
echo "<br>";
}
但这给了我一组这样的数组
Array ( [timestamp] => 2013-05-24 17:55:04 [0] => 2013-05-24 17:55:04 )
Array ( [timestamp] => 2013-05-24 18:00:05 [0] => 2013-05-24 18:00:05 )
Array ( [timestamp] => 2013-05-24 18:05:04 [0] => 2013-05-24 18:05:04 )
为什么这会在每个数组中给我 2 个相同的元素,而不是只有一个?