title: How to print specific json array values in php script?
body: <p>I have a json array that looks like this:</p>
  
  <pre><code>{"server-host-01":{"API":"Good","JETS":"Good","HTTPD":"Good","DISK":"23% Used","CPU":"WARNING: Avg idle at: 98% "},"server-host-02":{"DISK":"18% Used","CPU":"Avg idle at: 99% "}}
  </code></pre>
  
  <p>I have a key then inside that key another array of key:values and then another key with the same setup of key:values inside.</p>
  
  <p>In my php script i am assigning the json file to the variable of $files and then using json_decode to turn it into a php array (i think)</p>
  
  <pre><code>$files = (my_json_file.json);
      $string = file_get_contents($file);
      $json_a = json_decode($string, true);
  
  </code></pre>
  
  <p>Now i have the array in php i would like to print the main keys out and then print the key:values of the keys. They will be going into a html table but specially im looking for help printing out the values as i need them before i worry about the html part.</p>