Page 1 of 1

how to not resolve an entry?

Posted: 13 Jul 2011 18:13
by CodeLobster
i need this

Code: Select all

"ignore<crlf>this"
to be shown instead of

Code: Select all

"ignore
this"
ie, "<crlf>" MUST be displayed as it is, instead of resolved to a line feed.

this will still get <crlf> resolved:

Code: Select all

echo "ignore" . "<crlf>" . "this";
the real usage of this is that i need to write files in which "<crlf>" must be written as it is.

how?

Re: how to not resolve an entry?

Posted: 13 Jul 2011 18:38
by TheQwerty
You use single quotes:

Code: Select all

echo "ignore" . '<crlf>' . "this";
echo 'ignore<crlf>this'; //Same as above

Re: how to not resolve an entry?

Posted: 13 Jul 2011 18:47
by CodeLobster
thats it.

not completely familiar with the language but documentation and support are being of invaluable help.

thanks.

Re: how to not resolve an entry?

Posted: 14 Jul 2011 09:13
by admin
Dirty but working as well:

Code: Select all

echo "ignore<" . "crlf>this";