title: PHP Search JSON File
body: <p>So far I have this:</p>
  
  <pre><code>&lt;?php
  $obj = json_decode(file_get_contents("URLTOJSONFILEHERE"), true);
  
  $termStr = "WORD TO SEARCHHERE";
  $terms = explode(" ", $termStr);
  
  $results = array_filter($obj, function ($x) use ($terms){
      foreach($terms as $term){
          if (stripos($x["label"], $term) ||
              stripos($x["paper_item_id"], $term))
          {
              return true;
          }
      }
      return false;
  });
  
  echo print_r($results);
  </code></pre>
  
  <p>It does it correctly but how can I do it without print_r and json_encode? Is there a way to put it in an html table? 
  The Result I get:</p>
  
  <pre><code>{"103":{"paper_item_id":215,"type":5,"cost":320,"is_member":true,"label":"Life Jacket","prompt":"Life Jacket","layer":3000},"120":{"paper_item_id":232,"type":5,"cost":700,"is_member":true,"label":"Green Suede Jacket","prompt":"Green Suede Jacket","layer":3000},"125":{"paper_item_id":237,"type":5,"cost":700,"is_member":true,"label":"Red Suede Jacket","prompt":"Red Suede Jacket","layer":3000},"126":{"paper_item_id":238,"type":5,"cost":700,"is_member":true,"label":"Pastel Suede Jacket","prompt":"Pastel Suede Jacket","layer":3000},"129":{"paper_item_id":241,"type":5,"cost":700,"is_member":true,"label":"Purple Suede Jacket","prompt":"Purple Suede Jacket","layer":3000}
  </code></pre>
  
  <p>What does the First numbers of the JSON mean: 103,120 etc
  How can I NOT Show it in JSON file form?</p>