title: php json decode a txt file
body: <p>I have the following file:</p>
  
  <p><strong>data.txt</strong></p>
  
  <pre><code>{name:yekky}{name:mussie}{name:jessecasicas}
  </code></pre>
  
  <p>I am quite new at PHP. Do you know how I can use the decode the above JSON using PHP? </p>
  
  <p><strong>My PHP code</strong></p>
  
  <pre><code>var_dump(json_decode('data.txt', true));// var_dump value null
  
  foreach ($data-&gt;name as $result) {
          echo $result.'&lt;br /&gt;';
      }
  </code></pre>