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 stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #return #json #data
ADD COMMENT
Topic
Name
8+1 =