« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for defaultSort (0.001 sec.)
SQLite3::createCollation — SQLのcollate関数として使うPHP関数を登録する | PHP 8.... 9414
SQLite3::createCollation (PHP 5 >= 5.3.11, PHP 7, PHP 8) SQLite3::createCollation — SQLのcollate関数として使うPHP関数を登録する 説明 public function SQLite3::createCollation ( string $name , callable $callback ): bool SQL文の中でcollate関数 ... UES ('a10')" ); $db -> exec ( "INSERT INTO test VALUES ('a2')" ); $db -> createCollation ( 'NATURAL_CMP' , 'strnatcmp' ); $defaultSort = $db -> query ( "SELECT col1 FROM test ORDER BY col1" ); $naturalSort = $db -> query ( "SELECT col1 FROM test ORDER BY co ... l1 COLLATE NATURAL_CMP" ); echo "default:\n" ; while ( $row = $defaultSort -> fetchArray ()){ echo $row [ 'col1' ], "\n" ; } echo "\nnatural:\n" ; while ( $row = $naturalSort -> fetchArray ()){ ech ...
https://man.mtool.work/php/8.3/sqlite3.createcollation.html
PREV 1 NEXT