Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php return json data

header('Content-Type: application/json'); 

$colors = array("red","blue","green");
echo json_encode($colors);
Source by jonsuh.com #
 
PREVIOUS NEXT
Tagged: #php #return #json #data
ADD COMMENT
Topic
Name
2+2 =