Answers for "retrieve from json array php"

7

php return json

header('Content-type: application/json');
echo json_encode($array);
Posted by: Guest on March-20-2020
-1

Returning JSON from a PHP Script

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

Code answers related to "retrieve from json array php"

Code answers related to "Javascript"

Browse Popular Code Answers by Language