Posted by Alan Little on 11/19/07 11:47
Carved in mystic runes upon the very living rock, the last words of
stevek of comp.lang.php make plain:
> stevek wrote:
>> Following code does not produce any new lines. Any ideas.
>>
>> echo "This spans\multiple lines. The newlines will be\noutput as
>> well.";
>
> Sorry ... spell checker corrected some.
>
> echo "This spans\nmultiple lines. The newlines will be\noutput as
> well.";
So, you're saying that this will output the literal string:
This spans\nmultiple lines. The newlines will be\noutput as well.
Is the bit you posted above a direct cut-and-paste from your script? If
not, check that you are in fact using double quotes and not single.
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Navigation:
[Reply to this message]
|