> I want to have a textarea that contains details read from a mysql table,
> but I want to echo each row so that it is on a new line. What is the
> "new-line" character for a textarea? ( in effect the reverse of nl2br()

A newline is \n

$text = "word\nword\nword\n";

echo "<textarea>$word</textarea>";

will have each "word" on a different line. 

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to