mysql_xdevapi\Session
PHP Manual

Session::getClientId

(No version information available, might only be in Git)

Session::getClientIdGet client ID

Description

public integer mysql_xdevapi\Session::getClientId ( void )

Get ID of the connected client.

Parameters

This function has no parameters.

Return Values

ID of the connected client.

Examples

Example #1 mysql_xdevapi\Session::getClientId() example

<?php
$session 
mysql_xdevapi\getSession("mysqlx://user:password@localhost");

$clientid $session->getClientId();

var_dump($clientid);

The above example will output something similar to:

int(53)

mysql_xdevapi\Session
PHP Manual