Posted by deko on 10/09/97 11:57
contents of myfile.txt = 5035|9638742|11938 // (one line of text)
$myfile = "/home/path/public_html/myfile.txt";
$totals = file($myfile);
$var = explode("|", $totals[0]);
$i = number_format($var[0]);
$k = number_format($var[1]);
For some reason this is acting funny. I am getting a null value for $k for some
reason...
Is there a better way to do this?
Thanks in advance.
[Back to original message]
|