PHP 手册
上一页 |  | 下一页

# SAMConnection->rollback()

(no version information, might be only in CVS)

SAMConnection->rollback() -- Cancels (rolls back) an in-flight unit of work.

## 说明

class SAMConnection {
bool rollback ( void )
}

Rolls back an in-flight unit of work.

## 返回值

This method returns `FALSE` if an error occurs.

## 范例

例 1. Cancelling an in-flight unit of work

`<?php if (!$conn->rollback()) { // The rollback failed! echo "Rollback failed ($conn->errno) $conn->error"; } ?>`

## 参见

SAMConnection->commit()

上一页 | 起始页 | 下一页
SAMConnection->remove() | 上一级 | SAMConnection->send()