Decoding A Json String in php -


this question has answer here:

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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -