note 4184 modified in nl2br by zak

From: Date: Thu, 28 Dec 2000 23:21:28 +0000
Subject: note 4184 modified in nl2br by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-9167@lists.php.net to get a copy of this message
To convert break tags to newlines, use the following code snippet: /* Convert all standard and XHTML-compliant <br> tags to newlines */ $string = eregi_replace('<br[[:space:]]*/?[[:space:]]*>', "\n", $string); http://www.php.net/manual/function.nl2br.php

« previous php.notes (#9167) next »