src/bbn/db.php
public function select($table, $fields = [], array $where = [], array $order = [], int $start = 0): ?\stdClass
  {
    $args = $this->_add_kind($this->_set_limit_1(\func_get_args()));
    if ( $r = $this->_exec(...$args) ){
      return $r->get_object();
    }
    return null;
  }
public function select($table, $fields = [], array $where = [], array $order = [], int $start = 0): ?\stdClass
  {
    $args = $this->_add_kind($this->_set_limit_1(\func_get_args()));
    if ( $r = $this->_exec(...$args) ){
      return $r->get_object();
    }
    return null;
  }
public function select ( $ table , $ fields = [ ] , array $ where = [ ] , array $ order = [ ] , int $ start = 0 ) : ? \ stdClass { $ args = $ this -> _add_kind ( $ this -> _set_limit_1 ( \ func_get_args ( ) ) ) ; if ( $ r = $ this -> _exec ( ... $ args ) ) { return $ r -> get_object ( ) ; } return null ; }
Returns the first row resulting from the query as an object.

```php
\bbn\x::dump($db->select('table_users', ['name', 'surname'], [['id','>','2']]));
/*
(object){
"name": "John",
"surname": "Smith",
}
```

@param string|array $table The table's name or a configuration array
@param string|array $fields The fields' name
@param array $where  The "where" condition
@param array | boolean $order The "order" condition, default: false
@param int $start The "start" condition, default: 0
@return null|\stdClass
Returns the first row resulting from the query as an object .