MySQL and PHP
Copyright 1997-2021 the PHP Documentation Group.
Session::close
Close session
public bool mysql_xdevapi\Session::close();
Close the session with the server.
This function has no parameters.
true
if the session closed.
Example 5.111 mysql_xdevapi\Session::close
example
<?php $session = mysql_xdevapi\getSession("mysqlx://user:password@localhost"); $schema = $session->getSchema("addressbook"); $table = $schema->getTable("names"); $session->close();