You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
275 B
PHTML
15 lines
275 B
PHTML
5 years ago
|
<?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");
|
||
|
?>
|