Decoding A Json String in php -
this question has answer here:
- how extract data json php? 2 answers
i want know how can acess decoded json , code
<?php $jsonobject = $_get["userdetails"]; ?> jsonobject = {\"email\":\"joissumanh@gmail.com\"}
how can decode above json , acess it. looking forward indepth answer. thankyou
you can access object property using ->
<?php $jsonobject = json_decode($_get["userdetails"]); echo $jsonobject->email; // print joissumanh@gmail.com ?>
Comments
Post a Comment