Answers for "codeigniter echo set content type"

PHP
0

codeigniter echo set content type

public function jsonExit($array)
{
    $this->con->output->set_content_type('application/json'); // $this->con is get_instance from the constructor
    $this->con->output->set_output(json_encode($array));
}
Posted by: Guest on January-24-2022

Browse Popular Code Answers by Language