MySQL and PHP

5.26.3 Session::__construct

Copyright 1997-2019 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.111 mysql_xdevapi\Session::__construct example


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