I got a text file in this pattern for each line:
Username : Score
I'm trying to create a scoreboard out of this.
This is my attempt:
<table width="200" border="1">
<tr>
<td width="85">Nom</td>
<td width="99">Score</td>
</tr>
<tr>
<td height="119"></td>
<td></td>
</tr>
</table>
The question is how can I copy each username and score to the table (without the : character) ?
EDIT:
My current php code:
<?php
$file = file_get_contents('facile.txt', true);
$arr = explode("/", $file, 2);
$first = $arr[0];
?>
This will give me only the first username, but I want to get all the usernames from every line.
