method getRows documentation in bbn\Db\Languages\Sql

Return an array that includes indexed arrays for every row resultant from the query.

Example

X::dump($db->getRows("SELECT id, name FROM table_users WHERE id > ? LIMIT ?", 2)); /* (array)[ [ "id" => 3, "name" => "john", ], [ "id" => 4, "name" => "barbara", ], ] function() { if ($r = $this->query(...\func_get_args())) { return $r->getRows(); } return null; }

Return an array that includes indexed arrays for every row resultant from the query. 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.