Posted by Carl Vondrick on 04/13/06 19:53
infernon wrote:
> When I attempt to use \n in my code to generate a newline, it does not
> work. I've also see the other posts about using \r along with \n, but
> that doesn't work either. I'm sort of stuck here. Is there anything
> that I can do to generate a newline?
My bet is that you are doing this:
echo 'Test\n';
The problem here is the single quotes. The single quotes tell the parser to
just spit out this string, and ignore any modifiers or variables.
So, try this:
echo 'Test'."\n";
Good luck,
Carl
--
Carl Vondrick
Web-Engineer
www.carlsoft.net
[Back to original message]
|