average() public method
Returns the average of the specified column values.
public integer average ( $column, $db = null ) | ||
---|---|---|
$column | string |
The column name or expression. Make sure you properly quote column names in the expression. |
$db | yii\redis\Connection |
The database connection used to execute the query. If this parameter is not given, the |
return | integer |
The average of the specified column values. |
Please login to continue.