src/bbn/db.php
public function select_one($table, $field = null, array $where = [], array $order = [], int $start = 0)
  {
    if ( $r = $this->_exec(...$this->_add_kind($this->_set_limit_1(\func_get_args()))) ){
      if ( \is_object($r) ){
        return ($a = $r->get_irow()) ? $a[0] : false;
      }
      $this->log('ERROR IN RSELECT_ONE', $r);
    }
    return false;
  }
public function select_one($table, $field = null, array $where = [], array $order = [], int $start = 0)
  {
    if ( $r = $this->_exec(...$this->_add_kind($this->_set_limit_1(\func_get_args()))) ){
      if ( \is_object($r) ){
        return ($a = $r->get_irow()) ? $a[0] : false;
      }
      $this->log('ERROR IN RSELECT_ONE', $r);
    }
    return false;
  }
public function select_one ( $ table , $ field = null , array $ where = [ ] , array $ order = [ ] , int $ start = 0 ) { if ( $ r = $ this -> _exec ( ... $ this -> _add_kind ( $ this -> _set_limit_1 ( \ func_get_args ( ) ) ) ) ) { if ( \ is_object ( $ r ) ) { return ( $ a = $ r -> get_irow ( ) ) ? $ a [ 0 ] : false ; } $ this -> log ( 'ERROR IN RSELECT_ONE' , $ r ) ; } return false ; }
Return a single value

```php
\bbn\x::dump($db->select_one("tab_users", "name", [["id", ">", 1]], ["id" => "DESC"], 2));
(string) 'Michael'
```

@param string|array $table The table's name or a configuration array
@param string $field The field's 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 mixed
Return a single value