method getByColumns documentation in bbn\Db\Languages\Sql
Return an array indexed on the searched field's in which there are all the values of the column.
Example
X::dump($db->getByColumns("SELECT name, surname FROM table_users WHERE id > 2"));
/*
(array) [
"name" => [
"John",
"Michael"
],
"surname" => [
"Brown",
"Smith"
]
]
function()
{
if ($r = $this->query(...\func_get_args())) {
return $r->getByColumns();
}
return null;
}
Return an array indexed on the searched field's in which there are all the values of the column. 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.
© 2011-2023
BBN Solutions