title: php parsing Json to variable
body: <p>I need assistance with parsing json to variables using php. I googled and check through lots of howtos but without success. I think the problem is with the format my json is in.</p>
  
  <p><strong>Here is the json:</strong></p>
  
  <p>{"type":"success","response":{"data":[{"id":5,"username":"account2","hostname":"testapp.net","port":8080,"status":"enabled","email":"john@yourmomma.com","servertype":"IceCast","hostref":"0.0.0.0"},{"id":4,"username":"account1","hostname":"testapp2.net","port":8082,"status":"disabled","email":"john@yourmomma.com","servertype":"ShoutCast2","hostref":"0.0.0.0"}],"message":"2 account(s)"}}</p>
  
  <p>The tricky part starts after "response" where "data" begins.</p>
  
  <p>For example, I basically need to capture username, hostname and port into a variable so that I can call it up later if I want to display it on another page.</p>