Thanks,
Jon Smith
>Is there anyway to make new lines in single quotes?
$answer = 'yes,
there is.';
--
Andy Hassall <an...@andyh.co.uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>
No, not that I'm aware of :)
you can try:
<?php
define('LF', "\n"); // or 'NL' or 'NewLine' or 'LineFeed' or ...
echo 'first line', LF, 'second line';
// avoids (lol)
// echo "first line\nsecond line";
// or
// echo 'first line', "\n", 'second line';
?>
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
Ah! I felt like I was missing something :-)
You can break single-quoted strings (and double-quoted, for that
matter) over multiple lines.
Ex:
<?php
$string =
'This is
a string
with newlines!';
?>
But if you mean using the literal character(s) \n, then you'd have to
do it like:
<?php
$string = 'This is' . "\n" . 'a string' . "\n" . 'with newlines!';
?>
Which one is easier to read for you? ;)
JS
"auntie social" <n...@thanks.sucker> wrote in message
news:g5f0209sbcaui4njt...@4ax.com...