📅  最后修改于: 2022-03-11 14:53:42.230000             🧑  作者: Mango
$stmt = $pdo->prepare("SELECT * FROM users LIMIT :limit, :offset");$stmt->execute(['limit' => $limit, 'offset' => $offset]); $data = $stmt->fetchAll();// and somewhere later:foreach ($data as $row) { echo $row['name']."
\n";}