method selectAll documentation in bbn\Db\Languages\Sql

Return table's rows resulting from the query as an array of objects.

Example

X::dump($db->selectAll("tab_users", ["id", "name", "surname"],[["id", ">", 1]], ["id" => "ASC"], 2)); /* (array)[ Object stdClass: df { "id" => 2, "name" => "John", "surname" => "Smith", }, Object stdClass: df { "id" => 3, "name" => "Thomas", "surname" => "Jones", } ] function($table, $fields = [], array $where = [], array $order = [], int $limit = 0, int $start = 0) { if ($r = $this->_exec(...$this->_add_kind(\func_get_args()))) { return $r->getObjects(); } return null; }

Return table's rows resulting from the query as an array of objects. 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.