method select documentation in bbn\Db\Languages\Sql

Returns the first row resulting from the query as an object.

Example

X::dump($db->select('table_users', ['name', 'surname'], [['id','>','2']])); /* (object){ "name": "John", "surname": "Smith", } function($table, $fields = [], array $where = [], array $order = [], int $start = 0) { $args = $this->_add_kind($this->_set_limit_1(\func_get_args())); if ($r = $this->_exec(...$args)) { if (!is_object($r)) { $this->log([$args, $this->processCfg($args)]); } else{ return $r->getObject(); } } return null; }

Returns the first row resulting from the query as an object. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.