title: Getting data from text file and display it in html table
body: <p>I got a text file in this pattern for each line:</p>
  
  <pre><code>Username : Score
  </code></pre>
  
  <p>I'm trying to create a scoreboard out of this.</p>
  
  <p>This is my attempt:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table width="200" border="1"&gt;
    &lt;tr&gt;
      &lt;td width="85"&gt;Nom&lt;/td&gt;
      &lt;td width="99"&gt;Score&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td height="119"&gt;&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The question is how can I copy each <code>username</code> and <code>score</code> to the table (without the <code>:</code> character) ?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>My current php code:</p>
  
  <pre><code>&lt;?php 
  
      $file = file_get_contents('facile.txt', true);
      $arr = explode("/", $file, 2);
      $first = $arr[0];
  
  ?&gt;
  </code></pre>
  
  <p>This will give me only the first username, but I want to get all the usernames from every line.</p>