Manuel PHP
SQLite3::createFunction
(No version information available, might be only in CVS)
SQLite3::createFunction — Registers a PHP function for use as an SQL scalar function
Description
Registers a PHP function or user-defined function for use as an SQL scalar function for use within SQL statements.
Liste de paramètres
- 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 negative, then the SQL function may take any number of arguments.
Valeurs de retour
Returns TRUE upon successful creation of the function, FALSE on failure.
Exemples
Exemple #1 SQLite3::createFunction() example
L'exemple ci-dessus va afficher quelque chose de similaire à :
Remonter 
