PHP mysqli_get_host_info() function returns a string representing the type of connection used including the MySQL server hostname.
Syntax
Parameter | Description |
---|---|
Connection : | Required parameter. The MySQL connection to be used. |
Return Values : | Returns a character string representing the server hostname and the connection type. |