Example 1 — Print a Sample Status Line
Fixed demo string shaped like a typical mysqli_stat() result.
<?php
$stat = 'Uptime: 12345 Threads: 2 Questions: 678 Slow queries: 0';
echo $stat, PHP_EOL; How It Works
- Call mysqli_stat($link) on an open connection.
- Echo the returned string for a quick look.
- This sample mirrors common uptime/threads fields.
- Sample output when connected to a demo database will differ in the numbers.

