PHP·98 questionsHow to work with transactions?SaveUpdated: 2026-08-31Answer•$pdo->beginTransaction().•Execute queries.•$pdo->commit() — confirm.•$pdo->rollBack() — rollback.•try/catch for error handling.Ask AI to clarifyWas this answer helpful?HelpfulNot helpfulSuggest an improvement