Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Returning JSON from a PHP Script

<?php
$data = /** whatever you're serializing **/;
header('Content-Type: application/json; charset=utf-8');
echo json_encode($data);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Returning #JSON #PHP #Script
ADD COMMENT
Topic
Name
2+6 =