Question and answer is powered by AnsPress.io
In codeigniter I am trying to return some array value using json_encode(). But it so me some error in my web console when I will try some other languages. I can I fixed these error.
My code:
<?php header("Content-type:application/json"); echo json_encode($data); ?>