withStringBody(json_encode($result)); You can study and learn programming as you wish in the content of this website. ">
return $this->response->withType("application/json")->withStringBody(json_encode($result)); pure array