title: Output json to php (frontend)
body: <p>Here is the output as its beeing displayed right now in my index file (on the wesbite)
  So this is what i have right now
  <a href="https://gyazo.com/e3b5efb2c0ac9c7225c5c322ae92b0e9" rel="nofollow noreferrer">https://gyazo.com/e3b5efb2c0ac9c7225c5c322ae92b0e9</a></p>
  
  <p>And i want to have that displayed more nicley ( perhaps in a table with header from and then text ) </p>
  
  <p>That is my problem, im usure of what i can google or search for. Get the data that is saved in my json file. And Display it nicley in my index. </p>
  
  <p>Get some of the values from my .json file and display them in my index. </p>
  
  <p>Here is my php code.</p>
  
  <pre><code>$outfile= 'result.json';
  $url='https://newsapi.org/v2/top-headlines?country=us&amp;category=business&amp;apiKey=MYAPIKEY';
  $json = file_get_contents($url);
  if($json) {
      if(file_put_contents($outfile, $json, FILE_APPEND)) {
          echo "Saved JSON fetched from “{$url}” as “{$outfile}”.";
      }
      else {
          echo "Unable to save JSON to “{$outfile}”.";
      }
  }
  else {
      echo "Unable to fetch JSON from “{$url}”.";
  }
  
  $option = $_GET['option'];
  </code></pre>
  
  <p>And here its how i's getting displayed in my .json file.</p>
  
  <pre><code>{"status":"ok","totalResults":20,"articles":[{"source":{"id":"cnn","name":"CNN"},"author":"Matt McFarland","title":"Has Elon Musk lost control of his hype machine?","description":"For years, the entrepreneur controlled public opinion of Tesla. That's changing.","url":"https://money.cnn.com/2018/07/26/technology/elon-musk-tesla/index.html",
  </code></pre>