The following script can be used to clearly print out the results of mysql_stat().
<?php
mysql_connect("localhost", "username", "password");
$array = explode(" ", mysql_stat());
foreach ($array as $value){
echo $value . "<br />";
}
?>
Outputs something similar to:
Uptime: 698
Threads: 1
Questions: 4
Slow queries: 0
Opens: 19
Flush tables: 1
Open tables: 12
Queries per second avg: 0.5