MySQL and PHP

5.31.1 Table::__construct

Copyright 1997-2021 the PHP Documentation Group.

Description

private mysql_xdevapi\Table::__construct();

Construct a table object.

Parameters

This function has no parameters.

Examples

Example 5.152 mysql_xdevapi\Table::__construct example

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

$schema = $session->getSchema("addressbook");
$table  = $schema->getTable("names");
?>