title: PHP Display JSON
body: <p>I want to do the following in PHP:</p>
  
  <p>Get json data from <a href="http://domain.com/api/user/1" rel="nofollow">http://domain.com/api/user/1</a></p>
  
  <p>This provides:</p>
  
  <pre><code>{"name":"Joe","password":"something","email":"something@something.com"}
  </code></pre>
  
  <p>I want to be able to do a simple php echo to display the json data on a webpage</p>
  
  <pre><code>&lt;html&gt;&lt;?php echo $password ?&gt;&lt;/html&gt;
  &lt;html&gt;&lt;?php echo $name ?&gt;&lt;/html&gt;
  &lt;html&gt;&lt;?php echo $email ?&gt;&lt;/html&gt;
  </code></pre>
  
  <p>So basically, creating a php for the "name" / "password" or "email" part of json results</p>