title: Get string from CSV/JSON using PHP
body: <p>I have <strong>data.json</strong> like this :</p>
  <pre><code>{
      &quot;201206&quot;: &quot;6664 SPRINT SPECTRUM, L.P.&quot;,
      &quot;201207&quot;: &quot;6391 CELLCO PARTNERSHIP DBA VERIZON WIRELESS - NJ&quot;,
      &quot;201208&quot;: &quot;4036 NEW CINGULAR WIRELESS PCS, LLC - DC&quot;,
      &quot;201209&quot;: &quot;9206 VERIZON NEW JERSEY, INC.&quot;,
      &quot;201210&quot;: &quot;7421 AT&amp;AMP;T - LOCAL&quot;,
      &quot;201216&quot;: &quot;9206 VERIZON NEW JERSEY, INC.&quot;,
      &quot;201217&quot;: &quot;9206 VERIZON NEW JERSEY, INC.&quot;,
      &quot;201218&quot;: &quot;4036 NEW CINGULAR WIRELESS PCS, LLC - DC&quot;,
      &quot;201219&quot;: &quot;6630 USA MOBILITY WIRELESS, INC.&quot;,
      &quot;201220&quot;: &quot;4036 NEW CINGULAR WIRELESS PCS, LLC - DC&quot;
  }
  </code></pre>
  <p>and I have <strong>data.txt</strong> like this:</p>
  <pre><code>201206
  201207
  201208
  201209
  </code></pre>
  <p>and I want to validate my <code>data.txt</code> and get output like this :</p>
  <pre><code>201206@6664 SPRINT SPECTRUM, L.P.
  201207@6391 CELLCO PARTNERSHIP DBA VERIZON WIRELESS - NJ
  201208@4036 NEW CINGULAR WIRELESS PCS, LLC - DC
  201209@9206 VERIZON NEW JERSEY, INC.
  </code></pre>
  <p>I want to get the output with a single execution. Is that possible and how?</p>
  <p>For now, i use this methode :</p>
  <p>GET localhost/check.php?list=201206</p>
  <pre><code>$list = $_GET['list'];
  $data_json = json_decode(file_get_contents(&quot;data.json&quot;), true);
  $result = $data_json[''.$list.''];
  </code></pre>
  <p>then i run rollingcurl.<br>
  Maybe there is any other solutions?</p>