Documentation Home
MySQL PHP API
Download this Manual
PDF (US Ltr) - 2.4Mb
PDF (A4) - 2.4Mb
HTML Download (TGZ) - 250.8Kb
HTML Download (Zip) - 258.4Kb


MySQL PHP API  /  ...  /  Client::__construct

5.6.2 Client::__construct

Copyright 1997-2019 the PHP Documentation Group.

  • Client::__construct

    Client constructor

Description

private mysql_xdevapi\Client::__construct();

Construct a client object.

Parameters

This function has no parameters.

Examples

Example 5.10 mysql_xdevapi\Client::__construct example

<?php
$pooling_options = '{
  "enabled": true,
    "maxSize": 10,
    "maxIdleTime": 3600,
    "queueTimeOut": 1000
}';
$client = mysql_xdevapi\getClient($connection_uri, $pooling_options);
$session = $client->getSession();