php3-list | 199901
Date: 01/25/99
- Next message: Rasmus Lerdorf: "Re: [PHP3] XML functions"
- Previous message: cllovera <email protected>: "[PHP3] XML functions"
- In reply to: skiller <email protected>: "RE: [PHP3] $scalar = include(text.inc)?"
- Next in thread: Richard Lynch: "RE: [PHP3] $scalar = include(text.inc)?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Monday, January 25, 1999, 4:48 PM +0300 skiller <email protected> wrote:
> He-he... Perl-like solution:
>
> $scalar=join("\n",file('text.inc'));
According to the manual, file() leaves the newline attached, so this way
will end up with an additional newline. Try it without:
$scalar = join("", file('text.inc'));
-- Tommy Williams <mailto:Tommy.Williams <email protected>> <URL:http://www.mc.Vanderbilt.Edu/~tommy/>-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>
- Next message: Rasmus Lerdorf: "Re: [PHP3] XML functions"
- Previous message: cllovera <email protected>: "[PHP3] XML functions"
- In reply to: skiller <email protected>: "RE: [PHP3] $scalar = include(text.inc)?"
- Next in thread: Richard Lynch: "RE: [PHP3] $scalar = include(text.inc)?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

