Closed renat2985 closed 3 years ago
Medoo can do this without additional foreach?
$result = $this->database->select("single", ["page","content"]); foreach ($result as $row) { $object[$row['page']] = $row['content']; } echo json_encode($object);
Read the index mapping. https://medoo.in/api/select
Medoo can do this without additional foreach?