The value will be an array if the request has more than two fields. Return the same value as "get_key_val".
X::dump($db->selectAllByKeys("table_users", ["name","id","surname"], [["id", ">", "1"]], ["id" => "ASC"]);
/*
(array)[
"John" => [
"surname" => "Brown",
"id" => 3
],
"Michael" => [
"surname" => "Smith",
"id" => 4
]
]
function($table, array $fields = [], array $where = [], array $order = [], int $limit = 0, int $start = 0)
{
if ($rows = $this->rselectAll($table, $fields, $where, $order, $limit, $start)) {
return X::indexByFirstVal($rows);
}
return $this->check() ? [] : null;
}