← All docs

mysqli_begin_transaction()

Implemented by the compiler-injected mysqli prelude.

mysqli_begin_transaction()

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

Implemented by the compiler-injected mysqli prelude.

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_begin_transaction is implemented in the compiler, see the internals page.