Answers for "convert php array to json array not object"

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 "convert php array to json array not object"

Browse Popular Code Answers by Language