The Web Blinders logo

Programming

JSON TO PHP ARRAY CONVERSION EXAMPLE

<?php

$jsonString='
{
    "host":"localhost",
    "user":"root",
    "password":"root",
    "database":"accounts",
    "mysqlport":3306
 }
';

$arr=json_decode($jsonString,true);
print_r($arr);

/*

Array
(
    [host] => localhost
    [user] => root
    [password] => root
    [database] => accounts
    [mysqlport] => 3306
)

*/

ALTERNATE TITLES

Convert json to array

json_decode() php example

how to use json_decode() php

Need developers ?

if so, send a message.

thewebblinders@gmail.com

More Programming from our blog

SEARCH FOR ARTICLES