📅  最后修改于: 2022-03-11 15:00:43.634000             🧑  作者: Mango
prepare("SELECT name, colour FROM fruit");
$sth->execute();
$result = $q->fetchAll(PDO::FETCH_OBJ);
//$result contains an array of stdObjects
?>