RE: [PHP] "\n" is for a CR and for a Tab space is ?
| From: | Ignacio Vazquez-Abrams | Date: | Thu, 28 Dec 2000 17:42:04 +0000 |
| Subject: | RE: [PHP] "\n" is for a CR and for a Tab space is ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32108@lists.php.net to get a copy of this message | ||
On Thu, 28 Dec 2000 o.cook@etoncollege.org.uk wrote:
> 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
>
You're right. My bad :)
Just out of curiousity, why is the set of escape sequences so much smaller
with single quotes? Does that make sense?
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>