selectarray($sql); foreach ($res as $k => $v) { $res[$k] = $v['keyword']; } echo json_encode($res);exit(); } public function getRequestMethods(){ return Request :: POST; } } ?>