Function.mysqli-get-proto-info
Aus PHP-Wiki
mysqli_get_proto_info
(PHP 5)
mysqli_get_proto_info(no version information, might be only in CVS)
mysqli->protocol_version -- Returns the version of the MySQL protocol usedInhaltsverzeichnis |
Description
Procedural style:
int mysqli_get_proto_info ( object link)</BR >
Object oriented style (property):
class mysqli {</BR >string protocol_version
</BR >}
Returns an integer representing the MySQL protocol version used by the connection represented by the link parameter.
Example
Beispiel 1. Object oriented style
|
Beispiel 2. Procedural style
|
The above examples would produce the following output:
Protocol version: 10 |