PHP ARRAY TO JSON CONVERSION EXAMPLE
<?php
$arr = array(
'host' => 'localhost',
'user' => 'root',
'password' => 'root',
'database' => 'accounts',
'mysqlport' => 3306,
);
$jsonString=json_encode($arr);
echo $jsonString;
/*
{
"host":"localhost",
"user":"root",
"password":"root",
"database":"accounts",
"mysqlport":3306
}
*/
ALTERNATE TITLES