PHP Header code for JSON response:
header('Content-Type: application/json; charset=utf-8');
另外補上XML:
header('Content-type: text/xml');
全端開發技術 | Full-Stack Blog
PHP Header code for JSON response:
header('Content-Type: application/json; charset=utf-8');
另外補上XML:
header('Content-type: text/xml');