Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php convert array to json object

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

$toJSON = json_encode($myArr);

echo $toJSON;
 
PREVIOUS NEXT
Tagged: #php #convert #array #json #object
ADD COMMENT
Topic
Name
4+2 =