Advertisement
Guest User

SilverOS API stasera in TV

a guest
May 27th, 2018
681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. <?php
  2. $json = file_get_contents("http://api.silveros.it/tv.php"); //prendo il json
  3. $info = json_decode($json, true); //decodifico il JSON
  4. //Ora ottengo le informazioni di Italia 1
  5. $programma = $info["Italia 1"]["programma"];
  6. $ora = $info["Italia 1"]["ora"];
  7. $testo_intero = $info["testo"]; //testo con tutti  i programmi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement