(PHP 5 >= 5.3.0)
SQLite3::createAggregate — Registers a PHP function for use as an SQL aggregate function
Registers a PHP function or user-defined function for use as an SQL aggregate function for use within SQL statements.
Name of the SQL aggregate to be created or redefined.
The name of a PHP function or user-defined function to apply as a callback for every item in the aggregate.
The name of a PHP function or user-defined function to apply as a callback at the end of the aggregate data.
The number of arguments that the SQL aggregate takes. If this parameter is negative, then the SQL aggregate may take any number of arguments.
Returns TRUE upon successful creation of the aggregate, FALSE on failure.