The CodeIgniter helper function ________ is used to set JSON content type in HTTP headers.

  • json_header()
  • set_content_type('application/json')
  • set_json_content_type()
  • set_json_header()
The set_content_type('application/json') helper function is used in CodeIgniter to set the HTTP response headers to indicate that the content being sent is in JSON format.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *