atatus_end_transaction() function is used to end a transaction. Before you start any new transactions, you will have to end the transaction using this function.

Compatibility

Compatible with all PHP agent versions.

Syntax

copy
icon/buttons/copy
atatus_end_transaction()

Parameter

atatus_end_transaction() does not accept any parameters.

Example

In the following example, we stop a current transaction using the function.

copy
icon/buttons/copy
<?php

function example() {

    if (extension_loaded('atatus')) { // ensure PHP agent is available
        atatus_end_transaction();
    }
    // ...
}

See also