Example 1 — Print the Client Version Integer
Call mysqli_get_client_version() with no connection and print a typical sample.
<?php
echo mysqli_get_client_version(), PHP_EOL; How It Works
- No database connection is opened.
- The function returns the encoded client version.
- 80212 is a sample value meaning 8. 2.12.
- Your PHP build may report a different integer.

