Answers for "php json array get values"

PHP
2

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
2

how to get data from json array in php

$data = json_decode($json);
Posted by: Guest on August-15-2020

Browse Popular Code Answers by Language