|
SQLite3::createCollationRegisters a PHP function for use as an SQL collating function Beschreibung
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. Parameter-Liste
Rückgabewerte
Gibt bei Erfolg Beispiele
Beispiel #1 SQLite3::createCollation example Register the PHP function strnatcmp as a collating sequence in the SQLite3 database.
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: default: a1 a10 a2 natural: a1 a2 a10 Siehe auch
|