RE: [PHP] "\n" is for a CR and for a Tab space is ?

From: Date: Tue, 28 Dec 1999 17:58:38 +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-32115@lists.php.net to get a copy of this message
With Single Quotes it doesn't process what is between them. So you don't need to escape them. You can't use variables in-between double quotes. -----Original Message----- From: Ignacio Vazquez-Abrams [mailto:ignacio@openservices.net] Sent: Thursday, December 28, 2000 9:42 AM To: o.cook@etoncollege.org.uk Cc: php-general@lists.php.net Subject: RE: [PHP] "\n" is for a CR and for a Tab space is ? 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> -- 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

« previous php.general (#32115) next »