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