📅  最后修改于: 2022-03-11 14:56:32.661000             🧑  作者: Mango
function emailExists($pdo, $email) { $stmt = $pdo->prepare("SELECT 1 FROM users WHERE email=?"); $stmt->execute([$email]); return $stmt->fetchColumn();)if (emailExists($pdo, $email)) { // found}