Re: Long lines
| From: | Eddy-Das | Date: | Fri, 11 Jul 2003 16:22:12 +0000 |
| Subject: | Re: Long lines | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154908@lists.php.net to get a copy of this message | ||
i'm not sure if you want to "code in multi line, display in single line" or
"code in single line, display in multi line"
here gives an example:
<?php
echo "123";
echo "456";
echo "789";
?>
This will give:
123456789
another example:
<?php
echo "abc" . "\n" . "def" . "\n" . "xyz";
?>
This will give :
abc
def
xyz
another one:
<?php
echo "abc\ndef\nxyz";
?>
this also gives the same as above
hope this helps
--
- Eddy Wong
__________________________
inframatrix internet solutions
http://www.inframatrix.com/
??Eddy
Regular Octa-Eddy
???????
???????
??????? ??: eddy@zitez.net
??????? ??: news://news.fixip.net/chat.ed
??????? ???: news://news.fixip.net/
???????
???????
"Alvaro Rosales R." <aran80@wintersperu.com.pe> wrote in message news:3F0E7F34.30779.3002798@localhost...
> Hi guys,I am new to PHP and I am writing my first scripts, so maybe this question
> is a kinda stupid, but it is driving me crazy, can you tell me How can I set a line
> break in longs line of my code?.
> thanks in advance!