Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\Driver\Session::getServerMongoDB\Driver\Session::getTransactionState>
^MongoDB\Driver\SessionLast updated: Mon, 26 Oct 2026

MongoDB\Driver\Session::getTransactionOptions

(mongodb >=1.7.0)

MongoDB\Driver\Session::getTransactionOptions — Returns options for the currently running transaction

Description

final public function MongoDB\Driver\Session::getTransactionOptions(): ?array

Returns options for the currently running transaction.

Parameters

This function has no parameters.

Return Values

Returns a array containing current transaction options, or null if no transaction is running.

Errors/Exceptions

See Also


<MongoDB\Driver\Session::getServerMongoDB\Driver\Session::getTransactionState>
^MongoDB\Driver\SessionLast updated: Mon, 26 Oct 2026