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
  
  
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
  
  
<?php
function example() {
    if (extension_loaded('atatus')) { // ensure PHP agent is available
        atatus_end_transaction();
    }
    // ...
}
 +1-415-800-4104