Skip to content

Kirby 5.0.4

$query->avg()

Builds an average query

$query->avg(string $column): float

Parameters

Name Type Default
$columnrequired string no default value

Return type

float

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

Parent class

Kirby\Database\Query