Answers for "get php data from json in js"

PHP
1

php return json data

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

$colors = array("red","blue","green");
echo json_encode($colors);
Posted by: Guest on October-30-2019
0

access json object in php

$character = json_decode($data);
echo $character->name;
Posted by: Guest on November-10-2021

Browse Popular Code Answers by Language