Example 1 — Print Client Info Without Connecting
Call mysqli_get_client_info() alone and print a typical sample string.
<?php
echo mysqli_get_client_info(), PHP_EOL; How It Works
- No mysqli_connect() call is needed.
- mysqli_get_client_info() reads the linked client library.
- A typical mysqlnd sample string is printed.
- Your exact string depends on the PHP build.

