JSON TO PHP OBJECT CONVERSION EXAMPLE
<?php
$jsonString='
{
"host":"localhost",
"user":"root",
"password":"root",
"database":"accounts",
"mysqlport":3306
}
';
$obj=json_decode($jsonString,false);
var_dump($obj);
/*
object(stdClass)#1 (5) {
["host"]=>
string(9) "localhost"
["user"]=>
string(4) "root"
["password"]=>
string(4) "root"
["database"]=>
string(8) "accounts"
["mysqlport"]=>
int(3306)
}
*/
ALTERNATE TITLES