← All docs

mysqli_affected_rows()

Returns how many rows the last write affected.

mysqli_affected_rows()

function mysqli_affected_rows(mixed $mysql): int

Returns how many rows the last write affected.

Parameters:

  • $mysql (mixed)

Returns: int

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