php8.5
Home/ Manual/ oci8 / functions/ oci_client_version

oci_client_version

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.7, PHP 7, PHP 8, PECL OCI8 >= 1.4.6)

Returns the Oracle client library version

Description

oci_client_version(): string

Returns a string containing the version number of the Oracle C client library that PHP is linked with.

Parameters

None

Return Values

Returns the version number as a String.

Examples

oci_client_version() example

php
<?php
    echo "Client Version: " . oci_client_version(); // Client version: 19.9.0.0.0
?>

Notes

Note

Oracle libraries before 10gR2 do not have the underlying functionality to get the client library version number. The string "Unknown" will be returned in this case.

See Also

Source: reference/oci8/functions/oci-client-version.xml · from the official PHP manual (php/doc-en)