Source Code:
(back to article)
<?php $json = '{"name":"John Doe","age":30,"email":"johndoe@example.com"}'; class Person { public $name; public $age; public $email; } $person_array = json_decode($json, true); print_r($person_array);
Result:
Report an issue