MySQL and PHP

5.27.3 Session::__construct

Copyright 1997-2021 the PHP Documentation Group.

Description

private mysql_xdevapi\Session::__construct();

A Session object, as initiated by getSession().

Parameters

This function has no parameters.

Examples

Example 5.113 mysql_xdevapi\Session::__construct example

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