MySQL and PHP

5.30.1 Table::__construct

Copyright 1997-2019 the PHP Documentation Group.

Description

private mysql_xdevapi\Table::__construct();

Construct a table object.

Parameters

This function has no parameters.

Examples

Example 5.149 mysql_xdevapi\Table::__construct example


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

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