Answers for "how to convert an array to json with single key php"

PHP
20

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
0

how to convert array into json php

convert data
Posted by: Guest on January-15-2022

Code answers related to "how to convert an array to json with single key php"

Browse Popular Code Answers by Language