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::getTransactionOptionsMongoDB\Driver\Session::isDirty>
^MongoDB\Driver\SessionLast updated: Mon, 26 Oct 2026

MongoDB\Driver\Session::getTransactionState

(mongodb >=1.7.0)

MongoDB\Driver\Session::getTransactionState — Returns the current transaction state for this session

Description

final public function MongoDB\Driver\Session::getTransactionState(): string

Returns the transaction state for this session.

Parameters

This function has no parameters.

Return Values

Returns the current transaction state for this session.

Errors/Exceptions

See Also


<MongoDB\Driver\Session::getTransactionOptionsMongoDB\Driver\Session::isDirty>
^MongoDB\Driver\SessionLast updated: Mon, 26 Oct 2026