Answers for "how to get json array from json object in php"

PHP
10

php convert array to json object

$myArr = array("apple", "banana", "mango", "jackfruit");

$toJSON = json_encode($myArr);

echo $toJSON;
Posted by: Guest on June-18-2020
2

how to get data from json array in php

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

Code answers related to "how to get json array from json object in php"

Browse Popular Code Answers by Language