Hi Kok,
use nl2br();
$string = nl2br($string);
echo $string;
See the manual for full details.
James
"Coconut Ming" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]