public function convert() { $data = array(); $data['hello'] = 'Hello'; $data['world'] = 'World'; echo Convert::arrayToJSON($data); }