- var_dump: documentation ( source)
- json_decode: documentation ( source)
<?php
$string = '{"smartling":
{"files": [{"greeting": "Hello World"}] }
}';
$result = json_decode($string);
// Result: object(stdClass)#1 (2) { ["foo"]=> string(3) "bar" ["cool"]=> string(4) "attr" }
var_dump($result);