Advertisement
Guest User

Untitled

a guest
Nov 18th, 2015
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2.  
  3. function get($url)
  4. {
  5. $curl = curl_init();
  6. curl_setopt($curl, CURLOPT_URL, $url);
  7. curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  8. $result = curl_exec($curl);
  9. curl_close($curl);
  10. return $result;
  11. }
  12.  
  13. $res = get("https://spreadsheets.google.com/feeds/list/1Wjkvk4dneuURFsSCl3j8Nlegw20GUEIxW0rc1JF67hU/od6/public/basic?alt=json");
  14. $res = json_decode($res, true);
  15. var_dump($res['feed']['entry'][0]['content']['$t']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement