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
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to