|
Posted by andy.z on 04/02/07 13:46
In article <hr87e4-i1u.ln1@ophelia.g5n.co.uk>,
usenet200703@tobyinkster.co.uk says...
> andy.z wrote:
>
> > If I set a varaible as
> >
> > $EOL = "\r\n"
> >
> > But then want to echo that to a HTML page to see the above string
> > i.e. \r\n
> >
> > by doing: echo($EOL);
>
> Do you mean that you want the page to have the exact string:
>
> backslash, r, backslash, n
>
> ??
>
> If so, then use 'single quotes' when setting $EOL, not "double quotes".
>
As shown above in the example I gave - the variable is set with double
quotes.
I want to echo it as a string.
Andy
Navigation:
[Reply to this message]
|