Created
January 22, 2014 10:54
-
-
Save sdeluce/8556850 to your computer and use it in GitHub Desktop.
Parse Json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $json ='{"id":0,"name":"Ashley","surname":"Ford","Website":"http://papermashup.com"} '; | |
| $array=json_decode($json); | |
| // print the array | |
| print_r($array); | |
| echo $array->name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment