hi !
Im a little stuck here and im unsure where to go, so I came here 🙂
This is my first ever try at something like this....
Ive got:
<?
print "<table border=\"1\" bordercolor=\"#CCCCCC\">";
$list = "1 Tux 14:15:7 54.990";
list( $rank, $name, $x, $y, $z, $score ) = split( '[:.-]', $list ) ;
$score = preg_replace ( '.' , ',' , $score ) ;
echo "<tr>\n
<td>$rank</td>\n
<td>$name</td>\n
<td>$x:$y:$z</td>\n
<td>$score</td>\n
</tr>\n";
print "</table>" ;
?>
But I keep getting the error:
Warning: No ending delimiter '.' found in my_parser.php on line 8
Line 8 is:
$score = preg_replace ( '.' , ',' , $score ) ;
Can anyone help please?
Ben