Re: Dollar signs in values

From: Date: Fri, 07 Mar 2003 06:06:45 +0000
Subject: Re: Dollar signs in values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138568@lists.php.net to get a copy of this message
> Escape them with a backslash: > > $text = "The amount is \$400.-"; All that does is print \$ in my HTML. What's going on is that it will put, say, RR$T into a file when that's typed into a textbox or any typable form control. That's properly saved in the file. So the file will contain RR$T. When it's output, it could be RR, or RR$T, depending on some unpredictable factors (haven't figured it out). By adding a slash, what gets saved in the file is RR\$T, but what gets output could be RR\ or RR\$T, depending on those same factors.

« previous php.general (#138568) next »