public bool SQLite3::createFunction    ( string $name   , mixed $callback   [, int $argument_count = -1   [, int $flags = 0  ]] )

SQLite3::createFunctionRegisters a PHP function for use as an SQL scalar function

name

Name of the SQL function to be created or redefined.

callback

The name of a PHP function or user-defined function to apply as a callback, defining the behavior of the SQL function.

argument_count

The number of arguments that the SQL function takes. If this parameter is -1, then the SQL function may take any number of arguments.

flags

A bitwise conjunction of flags. Currently, only SQLITE3_DETERMINISTIC is supported, which specifies that the function always returns the same result given the same inputs within a single SQL statement.