public function get_tables(string $database=''): ?array
  {
    if ( empty($database) ){
      $database = $this->current;
    }
    return $this->_get_cache($database, 'tables');
  }
public function get_tables(string $database=''): ?array
  {
    if ( empty($database) ){
      $database = $this->current;
    }
    return $this->_get_cache($database, 'tables');
  }
public function get_tables ( string $ database = '' ) : ? array { if ( empty ( $ database ) ) { $ database = $ this -> current ; } return $ this -> _get_cache ( $ database , 'tables' ) ; }
Return tables' names of a database as an array.

```php
\bbn\x::dump($db->get_tables('db_example'));
/*
(array) [
"clients",
"columns",
"cron",
"journal",
"dbs",
"examples",
"history",
"hosts",
"keys",
"mails",
"medias",
"notes",
"medias",
"versions"
]
```

@param string $database Database name
@return null|array
Return tables names of a database as an array .