Answers for "php object to json 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

Browse Popular Code Answers by Language