Answers for "php parse array to json without string conversion"

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

Code answers related to "php parse array to json without string conversion"

Browse Popular Code Answers by Language