Sean Cazzell wrote:

> > I grab this line and try to make it an array like this:
> print "line: $thelinefromfile\n";       //Check the line
> > $var1 = trim($thelinefromfile);
> > $var2 = split(" ", $thelinefromfile);
> > $count = count($var2);
>
> Are you sure $thelinefromfile is actually being set correctly?
>
> Regards,
>
> Sean

Yes
I print it out it says "Array"
so i then do
print $thelinefromfile[0];
and it prints out the whole line instead of the first field from the
line...

-- Rick Ridgeway




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to