Skip to content

Instantly share code, notes, and snippets.

@RubyRonin
Created Nov 5, 2015
Embed
What would you like to do?
echo "<p>My Json objects:</p>";
$url="http://jsonplaceholder.typicode.com/posts";
$json = file_get_contents($url);
$data = json_decode($json, TRUE);
echo $data[0];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment