Categories
How to output specific element from JSON in PHP?
{ "name" : "admin", "id" : "34", "id_to" : "8" }
Answer the question
In order to leave comments, you need to log in
$json_string='{"name":"admin","id":"34","id_to":"8"}'; $obj=json_decode($json_string); echo $obj->name;
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question