Name: Anonymous 2011-08-08 9:20
So I have a text file containing lines of stuff. I get a line from the file, for example this one:
2 88.115.209.176 -t3>SJ Red 21 21 10 0 3 0 3
I place that to a variable $lineoftext, and then explode() it by whitespace.
$parts = explode(" ", $lineoftext);
The output?
$parts[0] = 2
$parts[1] = 88.115.209.176 -t3>SJ Red 21 21 10 0 3 0 3
What am I doing wrong here?
2 88.115.209.176 -t3>SJ Red 21 21 10 0 3 0 3
I place that to a variable $lineoftext, and then explode() it by whitespace.
$parts = explode(" ", $lineoftext);
The output?
$parts[0] = 2
$parts[1] = 88.115.209.176 -t3>SJ Red 21 21 10 0 3 0 3
What am I doing wrong here?