Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. {
  2. "books": [
  3. {
  4. "id": 2331,
  5. "image": "http://lol.org/flower.png",
  6. "images": [
  7. {
  8. "256x144": "http://lol.org/bee.png",
  9. "650x320": "http://lol.org/fly.png"
  10. }
  11. ],
  12.  
  13. ....
  14.  
  15. $data = json_decode($jsondata,true);
  16. $gg = sizeof($data['books']);
  17. for($x=0;$x<$gg;$x++){
  18.  
  19. $image = $data['books'][$x]['image'];
  20.  
  21. $image = ($data->{'books'}->{'images'}->{'320x180'});
  22.  
  23. $image = $data['books']['images'][$x]['320x180'];
  24.  
  25. $image = $data['books'][$insertIndexHere]['images'][$insertIndexHere]['320x180'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement