|
SQLite3::createCollationRegisters a PHP function for use as an SQL collating function Description
public bool SQLite3::createCollation
( string
$name
, callable $callback
)Registers a PHP function or user-defined function for use as a collating function within SQL statements. Parameters
Return Values
Returns Examples
Example #1 SQLite3::createCollation example Register the PHP function strnatcmp as a collating sequence in the SQLite3 database.
<?php The above example will output: default: a1 a10 a2 natural: a1 a2 a10 See Also
|