[ create a new paste ] login | about

Link: http://codepad.org/TayMHqJt    [ raw code | output | fork ]

PHP, pasted on Oct 10:
1
2
3
4
5
6
<?
$string = '{"Url":"http://localhost","DBName":"John_db","DBUser":"admin","Pass":"a"}';
$array = json_decode( $string, true );

print_r($array);
?>


Output:
1
2
3
4
5
6
7
Array
(
    [Url] => http://localhost
    [DBName] => John_db
    [DBUser] => admin
    [Pass] => a
)


Create a new paste based on this one


Comments: