RE: [PHP] "\n" is for a CR and for a Tab space is ?
| From: | o dot cook at etoncollege dot org dot uk | Date: | Thu, 28 Dec 2000 17:38:52 +0000 |
| Subject: | RE: [PHP] "\n" is for a CR and for a Tab space is ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-32106@lists.php.net to get a copy of this message | ||
I'm not sure about this, but....
shouldn't
str_replace('\t', ' ', $msg);
be
str_replace("\t", ' ', $msg);
so that it matches the control character, rather than the two characters
backslash and t?
Regards,
Ollie
> -----Original Message-----
> From: Ignacio Vazquez-Abrams [mailto:ignacio@openservices.net]
> Sent: 28 December 2000 17:37
> To: Angel Behar
> Cc: Julia A . Case; php-general@lists.php.net
> Subject: Re: [PHP] "\n" is for a CR and for a Tab space is ?
>
>
> On Thu, 28 Dec 2000, Angel Behar wrote:
>
> > Thanks for everybody for the answer, but.....
> >
> > \t does not work, \n works perfect but the tabs doesn't appear.
> >
> > I'm sending a mail w/mail function and reading it in
> Outlook express.
> >
> > Any idea ?
> >
> > Thanks again.
> >
>
> Are you sure that OE isn't just chewing up the tabs? You may
> have to use
> spaces instead:
>
> str_replace('\t', ' ', $msg);
>
> --
> Ignacio Vazquez-Abrams <ignacio@openservices.net>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>