On Tue, June 21, 2005 8:59 am, Sunny Boy said:
> if someone writes something in a text box, how would I convert a line
> break in the text area to echo a ? I think i'll have to get the \n
> and convert it. can anyone tell me?
While the two solutions provided so far are Really Nifty (tm) both ignor
$YOUR_VARIABLE_CONVERTED = nl2br($YOUR_VARIABLE);
On 6/21/05, Jason Barnett <[EMAIL PROTECTED]> wrote:
> http://php.net/manual/en/function.nl2br.php
>
> --
> NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
> STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
> STFM | http://php.net/
http://php.net/manual/en/function.nl2br.php
--
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
--
PHP General Mailing List (http://www.php.net/)
To
On 6/21/05, Sunny Boy <[EMAIL PROTECTED]> wrote:
> if someone writes something in a text box, how would I convert a line
> break in the text area to echo a ? I think i'll have to get the \n
> and convert it. can anyone tell me?
>
> Thanks.
>
> sunny
>
> --
> PHP General Mailing List (http://www.
if someone writes something in a text box, how would I convert a line
break in the text area to echo a ? I think i'll have to get the \n
and convert it. can anyone tell me?
Thanks.
sunny
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
5 matches
Mail list logo