Skip to content

Kirby 5.2.2

$database->affected()

Returns the number of affected rows for the last query

$database->affected(): int|null

Return types

intornull

This method modifies the existing $database object it is applied to and returns it again.

Parent class

Kirby\Database\Database