original_string: public function get_unique_keys($table): array
    {
      $fields = [[]];
      if ( $ks = $this->get_keys($table) ){
        foreach ( $ks['keys'] as $k ){
          if ( $k['unique'] ){
            $fields[] = $k['columns'];
          }
        }
      }
      return array_merge(...$fields);
    }
code: public function get_unique_keys($table): array
    {
      $fields = [[]];
      if ( $ks = $this->get_keys($table) ){
        foreach ( $ks['keys'] as $k ){
          if ( $k['unique'] ){
            $fields[] = $k['columns'];
          }
        }
      }
      return array_merge(...$fields);
    }
code_tokens: public function get_unique_keys ( $ table ) : array { $ fields = [ [ ] ] ; if ( $ ks = $ this -> get_keys ( $ table ) ) { foreach ( $ ks [ 'keys' ] as $ k ) { if ( $ k [ 'unique' ] ) { $ fields [ ] = $ k [ 'columns' ] ; } } } return array_merge ( ... $ fields ) ; }
docstring: Return the unique keys of a table as a numeric array.
  
  ```php
  \bbn\x::dump($db->get_unique_keys('table_users'));
  // (array) ["userid", "userdataid"]
  ```
  
  @param string $table The table's name
  @return array
docstring_tokens: Return the unique keys of a table as a numeric array .