PHP Header code for JSON response:
header('Content-Type: application/json; charset=utf-8');
另外補上XML:
header('Content-type: text/xml');
網頁開發知識 | Web-Dev Blog
PHP Header code for JSON response:
header('Content-Type: application/json; charset=utf-8');
另外補上XML:
header('Content-type: text/xml');