|
Posted by Christoph Burschka on 02/01/07 13:33
CH4:D schrieb:
> Michael Fesser wrote:
>
>
>>.oO(lister)
>>
>>
>>>I am trying to output a newline, but this doesn't work:
>>>
>>>echo "Line1\nLine2";
>>
>>It does work. What PHP version do you use?
>>
>>Micha
>
>
> I find it weird too. The syntax is correct.
>
Yes, it should only cause a problem if it were enclosed in single
quotes. '\n' will just print \n, "\n" will print a linebreak. This can't
work:
echo 'Line1\nLine2';
(Just clarifying, since this distinction wasn't yet mentioned.)
--
CB
Navigation:
[Reply to this message]
|