public function get_table_status($table = '') {

        // if table argument contains the database name, extract it
        if (strpos($table, '.') !== false) list($database, $table) = explode('.', $table, 2);

        // run the query
        $this->query('
            SHOW
            TABLE
            STATUS
            ' . (isset($database) ? ' IN ' . $this->_escape($database) : '') . '
            ' . (trim($table) != '' ? 'LIKE ?' : '') . '
        ', array($table));

        // fetch and return data
        return $this->fetch_assoc_all('Name');

    }
public function get_table_status($table = '') {

        // if table argument contains the database name, extract it
        if (strpos($table, '.') !== false) list($database, $table) = explode('.', $table, 2);

        // run the query
        $this->query('
            SHOW
            TABLE
            STATUS
            ' . (isset($database) ? ' IN ' . $this->_escape($database) : '') . '
            ' . (trim($table) != '' ? 'LIKE ?' : '') . '
        ', array($table));

        // fetch and return data
        return $this->fetch_assoc_all('Name');

    }
public function get_table_status ( $ table = '' ) { // if table argument contains the database name, extract it if ( strpos ( $ table , '.' ) !== false ) list ( $ database , $ table ) = explode ( '.' , $ table , 2 ) ; // run the query $ this -> query ( '
            SHOW
            TABLE
            STATUS
            ' . ( isset ( $ database ) ? ' IN ' . $ this -> _escape ( $ database ) : '' ) . '
            ' . ( trim ( $ table ) != '' ? 'LIKE ?' : '' ) . '
        ' , array ( $ table ) ) ; // fetch and return data return $ this -> fetch_assoc_all ( 'Name' ) ; }
Returns an associative array with a lot of useful information on all or specific tables only.

<code>
// return status information on tables in the currently
// selected database having their name starting with "users"
$tables = get_table_status('users%');
</code>

@param  string  $table      (Optional) Table for which to return information for.

<i>May also be given like databasename.tablename if a database was not explicitly
selected with the {@link connect()} or {@link select_database()} methods prior to
calling this method.</i>

% may be used as a wildcard in table's name to get information about all the tables
matching the pattern.

If not specified, information will be returned for all the tables in the currently
selected database.

@since  1.1.2

@return array               Returns an associative array with a lot of useful information on all or specific
tables only.
Returns an associative array with a lot of useful information on all or specific tables only .