phpbar.de logo

Mailinglisten-Archive

[php] =?iso-8859-1?Q?umbr=FCch?= =?iso-8859-1?Q?e?= aus formular in <br> umwandlen

[php] umbrüch e aus formular in
umwandlen

Enrico Weigelt php_(at)_phpcenter.de
Tue, 18 Jun 2002 12:33:13 +0200


On Mon, Jun 17, 2002 at 04:45:22PM +0200, Marc Beyerlin wrote:
> hallo phpler,
> 
> weiss jemand wie man die zeilenumbrüche aus formulardaten ( hexa 0d 0a ) in
> <br>
> umwandelt?

preg_replace ( "/\n/g", "<BR>", $text )

~-n
 
--
 Enrico Weigelt    ==   metux ITS 
 Webhosting ab 5 EUR/Monat. Server-Housing ab 50 EUR/Monat.
 www:     http://www.metux.de/        phone:     +49 36207 519931
 email:   contact_(at)_metux.de            cellphone: +49 174 7066481


php::bar PHP Wiki   -   Listenarchive