PHP - Manual: Session::close
2024-11-14
(No version information available, might only be in Git)
Session::close — Close session
Close the session with the server.
此函数没有参数。
true
if the session closed.
示例 #1 mysql_xdevapi\Session::close() example
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$schema = $session->getSchema("addressbook");
$table = $schema->getTable("names");
$session->close();
官方地址:https://www.php.net/manual/en/mysql-xdevapi-session.close.php