Answers for "content-type application/json php"

PHP
0

content-type application/json php

<?php
$data = /** whatever you're serializing **/;
header('Content-Type: application/json; charset=utf-8');
echo json_encode($data);
Posted by: Guest on April-01-2022

Code answers related to "content-type application/json php"

Browse Popular Code Answers by Language