Re: Dollar signs in values

From: Date: Fri, 07 Mar 2003 06:01:21 +0000
Subject: Re: Dollar signs in values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138567@lists.php.net to get a copy of this message
On Friday 07 March 2003 13:58, Liam Gibbs wrote: > How is it I can properly get PHP to represent dollar signs when putting it > into HTML? > > I know that dollar signs denote the beginning of a variable, like > $reference or $ftpstream or whatever. However, I have a text file that > contains (or can contain) values with $ in them. When I open the file and > grab those values, then stick them onto my HTML page, they get > unpredictable results. Could you show some code to illustrate the unpredictable results that you get? > Is there a way I can escape them or such? Use a backslash, or use single-quotes instead of double-quotes. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Without freedom of choice there is no creativity. -- Kirk, "The return of the Archons", stardate 3157.4 */

« previous php.general (#138567) next »