mysqli::$host_info
En esta página
mysqli::\$host_info
mysqli_get_host_info
Devuelve un string que contiene el tipo de conexión utilizada
Descripción#
Estilo orientado a objetos
string
mysqli->host_info
Estilo procedimental
mysqli_get_host_info(mysqli $mysql): string
```php
`mysqli_get_host_info` devuelve un string de caracteres que describe la conexión representada por el argumento `mysql` (incluyendo el nombre de host del servidor).
## Parámetros
`mysql`
Solo estilo procedimental: Un objeto `mysqli` devuelto por `mysqli_connect` o `mysqli_init`
## Valores devueltos
Un string que representa el nombre de host del servidor y el tipo de conexión.
## Ejemplos
Ejemplo con `$mysqli->host_info`
Estilo orientado a objetos
Estilo procedimental