Re: Text area ...
| From: | James, Yz | Date: | Mon, 06 Aug 2001 20:58:28 +0000 |
| Subject: | Re: Text area ... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61482@lists.php.net to get a copy of this message | ||
Hi Kok,
use nl2br();
$string = nl2br($string);
echo $string;
See the manual for full details.
James
"Coconut Ming" <coconut@maxis.net.my> wrote in message
news:3B6EFCF3.70D47626@maxis.net.my...
> hi..
> Did you feel it is strange alignment when you output the same thing
> again in PHP...
> I mean the line break... For example I enter the following text and the
> order of text as below
> I
> AM
> A
> GUY
>
> so... I store it.... when I output it again.. It is display as I AM A
> GUY....
> the line break or [enter] key just does not detected... Anyone know
> any solution for this? thanks for helping.
>
> Sincerely
> Kok Ming
>