method rselect documentation in bbn\Db\Languages\Sql

Return the first row resulting from the query as an indexed array.

Example

X::dump($db->rselect("tab_users", ["id", "name", "surname"], ["id", ">", 1], ["id" => "ASC"], 2)); /* (array) [ "id" => 4, "name" => "John", "surname" => "Smith" ] function($table, $fields = [], array $where = [], array $order = [], int $start = 0) { if ($r = $this->_exec(...$this->_add_kind($this->_set_limit_1(\func_get_args())))) { return $r->getRow(); } return null; }

Return the first row resulting from the query as an indexed array. 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.