pg_transaction_status

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Returns the current in-transaction status of the server
<?php pg_transaction_status(PgSql\Connection $connection): int
<?php         $a['status'] = new ConstStub(\PGSQL_CONNECTION_OK === $a['status'] ? 'PGSQL_CONNECTION_OK' : 'PGSQL_CONNECTION_BAD', $a['status']);

        $a['busy'] = pg_connection_busy($link);



        $a['transaction'] = pg_transaction_status($link);

        if (isset(self::TRANSACTION_STATUS[$a['transaction']])) {

            $a['transaction'] = new ConstStub(self::TRANSACTION_STATUS[$a['transaction']], $a['transaction']);

        }