Array to json converter online

How to convert array to json in php

We can use json_encode to convert an array into jsob object in php. echojson_encode($array_data);

How to use the following converter ?

PHP array format should be like the following "item1","item2","item3" or "key1"=>"value", "key2"=>"value", "key3"=>"value"

PHP Array
Json Output