|
Posted by d on 11/18/27 11:43
"julian_m" <julianmaisano@gmail.com> wrote in message
news:1143261736.826036.238840@i40g2000cwc.googlegroups.com...
>
> Justin Koivisto wrote:
>> ED wrote:
>> > "fiziwig" <fiziwig@yahoo.com> wrote in message
>> > news:1143224578.951239.12360@t31g2000cwb.googlegroups.com...
>> >> echo '<div>\n';
>> >>
>> >> --gary
>> >>
>> >
>> > erm, shouldn't that be:
>> > echo "<div>\n";
>> > (note: double quotes not single)
>>
>> or you could define the end of line string in a constant for easier
>> modification down the road...
>
> That's what I did already, thinking in the same scenario, using a var
> though:
> $L_end = "\n";
>
>> <?php
>> define('CRLF',"\r\n");
>>
>> echo '<div>',CRLF;
>
> It is possible to join two strings with ',' or it was just a typo ???
That's not joining strings but passing multiple strings to echo, which is
actually a language construct (and not a function), and as such can handle
such strangeness.
> regards - jm
>
[Back to original message]
|