php8.5
Home/ Manual/ sqlite3 / sqlite3/ SQLite3::version

SQLite3::version

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Returns the SQLite3 library version as a string constant and as a number

Description

SQLite3::version(): array

Returns the SQLite3 library version as a string constant and as a number.

Parameters Parameters

Return Values

Returns an associative array with the keys "versionString" and "versionNumber".

Examples

SQLite3::version() example

php
<?php
print_r(SQLite3::version());
?>

The above example will output something similar to:

output
Array
(
    [versionString] => 3.5.9
    [versionNumber] => 3005009
)

Source: reference/sqlite3/sqlite3/version.xml · from the official PHP manual (php/doc-en)