← All docs

mysqli_rollback()

Rolls back the open transaction.

mysqli_rollback()

function mysqli_rollback(mixed $mysql, int $flags = 0, ?string $name = null): bool

Rolls back the open transaction.

Parameters:

  • $mysql (mixed)
  • $flags (int), default 0, optional
  • $name (?string), default null, optional

Returns: bool

Availability

  • Compiled (AOT): supported through an injected elephc-PHP prelude.
  • eval() (magician interpreter): not available inside eval’d code.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how mysqli_rollback is implemented in the compiler, see the internals page.