[ create a new paste ] login | about

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

djhell - PHP, pasted on Oct 10:
1
2
3
4
5
6
7
<?php

$ar = json_decode( '{"Url":"http://localhost","DBName":"John_db","DBUser":"admin","Pass":"a"}', 1 );
foreach ($ar as $k => $a) {
    $$k = $a;
    echo $k . " => " . $$k . "\n";
}


Output:
1
2
3
4
Url => http://localhost
DBName => John_db
DBUser => admin
Pass => a


Create a new paste based on this one


Comments: