Session::getClientId
(No version information available, might only be in Git)
Session::getClientId — Get client ID
说明
public
mysql_xdevapi\Session::getClientId (
void ) :
integer
Get ID of the connected client.
参数
此函数没有参数。
返回值
ID of the connected client.
范例
Example #1 mysql_xdevapi\Session::getClientId() example
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$clientid = $session->getClientId();
var_dump($clientid);
以上例程的输出类似于:
int(53)