Re: \ Char Question

From: Date: Wed, 13 Dec 2000 01:19:26 +0000
Subject: Re: \ Char Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-29999@lists.php.net to get a copy of this message
On Wed, 13 Dec 2000, Matt Stone wrote: > Hi, > I am trying this code: > $str = strtr($str, "m", "/\/\"); > The problem is that I have an error from tying to echo the \ char. How would > I fix this? > Thanks, > > Matt Stone > > _______________________________ > > This email may contain confidential and/or privileged information for the > sole use of the intended recipient. Any review or distribution by others is > strictly prohibited. If you have received this email in error, please > contact the sender and delete all copies. Opinions, conclusions or other > information expressed or contained in this email are not given or endorsed > by the sender unless otherwise affirmed independently by the sender. > > _________________________________ > You have to escape the backslash: "\\" -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#29999) next »