Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
function w3rfunction($value,$key)
|
||||
{
|
||||
echo "$key : $value"."\n";
|
||||
}
|
||||
$a = '{"Title": "The Cuckoos Calling",
|
||||
"Author": "Robert Galbraith",
|
||||
"Detail":
|
||||
{
|
||||
"Publisher": "Little Brown"
|
||||
}
|
||||
}';
|
||||
$j1 = json_decode($a,true);
|
||||
array_walk_recursive($j1,"w3rfunction");
|
||||
?>
|
||||
Reference in New Issue
Block a user