PHP mysqli_get_client_stats() Function
In this chapter you will learn:
- Definition for PHP mysqli_get_client_stats() Function
- Syntax for PHP mysqli_get_client_stats() Function
- Return for PHP mysqli_get_client_stats() Function
- Example - Get statistics about client per-process
Definition
The mysqli_get_client_stats() function returns statistics about client per-process.
Syntax
PHP mysqli_get_client_stats() Function has the following syntax.
mysqli_get_client_stats();
Return
Return stats about client per-process.
Example
Get statistics about client per-process
<?php//from j av a 2 s . co m
$con=mysqli_connect("localhost","my_user","my_password","my_db");
if (mysqli_connect_errno($con)){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
print_r(mysqli_get_client_stats());
mysqli_close($con);
?>
Next chapter...
What you will learn in the next chapter:
- Definition for PHP mysqli_get_client_version() Function
- Syntax for PHP mysqli_get_client_version() Function
- Parameter for PHP mysqli_get_client_version() Function
- Return for PHP mysqli_get_client_version() Function
- Example - Returns the MySQL client library version as an integer
Home » PHP Tutorial » PHP MySQLi Functions