Looks like the first question was answered correctly, for the second one
look at the ltrim and rtrim functions.
$var = "rrrr ";
$var = rtrim($var);
Sr. UNIX Administrator
"Pay It Forward"
> -----Original Message-----
> From: Rick Dahl [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 01, 2003 11:11 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] Reading from a file
> I need to read from a file that is tab delimited. Is there
> anyway to specify that it reads between each tab and that is
> it. I know fread() uses bytes to figure out what to read but
> that isn't very practical in my case.
> Also, how do I get rid of any white space at the end of a
> variable if there is some once it is read in?
> - Rick