PHP mysqli_get_host_info() Function
Example
Return the MySQL server hostname and connection type:
Definition and Usage
The mysqli_get_host_info() function returns the MySQL server hostname and connection type.
Syntax
mysqli_get_host_info(
connection
)
;
| Parameters | Description |
|---|---|
| connection | Required. Specifies the MySQL connection to use. |
Technical Details
| Return Value: | Returns a string representing the MySQL server hostname and connection type. |
|---|---|
| PHP Version: | 5+ |
PHP MySQLi Reference Manual