Hello. I'm trying to write a small script to strip timestamp tags off of my IRC chat logs. The way I'm trying to do is using a loop. The problem is that the <nickname> parts don't appear. The example I'm showing doesn't have timestamps.
My code is basically this:
<PRE>
<?php
$fp = file("quotes.txt");
for ($line = 0; $line < sizeof($fp); $line++) {
echo $fp[$line];
}
?>
</PRE>
Here is my sample quotes.txt file:
<me> hi
<friend> hello
But the script outputs this:
hi
hello
What I want to know is, is there a way I can make it not strip <nickname>s? Thanks.