|
PHP5中文手册
mysqli_get_host_infomysqli->host_info(No version information available, might be only in CVS) mysqli->host_info — Returns a string representing the type of connection used 说明Procdural style:
string mysqli_get_host_info
( mysqli $link
)
Object oriented style (property): mysqli
string$host_info;
The mysqli_get_host_info() function returns a string describing the connection represented by the link parameter is using (including the server host name). 返回值A character string representing the server hostname and the connection type. 范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php 上例将输出:
|