Re: FILE () STRIPS BLANKS FROM THE ARRAY - HOW CAN I STOP IT

From: Date: Mon, 07 May 2001 18:36:23 +0000
Subject: Re: FILE () STRIPS BLANKS FROM THE ARRAY - HOW CAN I STOP IT
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-51793@lists.php.net to get a copy of this message
On Monday 07 May 2001 02:41, Jay Lepore wrote: > I have an ASCII fixed width text file I'm trying to convert to an array > of fields. But I need to keep the spaces in tact so I know exactly > where one field ends and another begins. > > Do you know of any way to modify the default behavior of file() which > strips the blanks spaces out when returning the array? (1) Don't shout in the subject. It annoys people. (2) file() doesn't do that. It's a bug if it does it. (3) How did you see that the blanks are cut out? By doing a echo "Line: '$Line'<br>" ? Then of course you don't see the blanks - you're looking at HTML code. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Error 032: Recursion error - see error 032

« previous php.general (#51793) next »