Reverse nl2br() – line breaks to new lines Posted 4th December 2016 by Admin & filed under PHP. function br2nl($string){ return preg_replace('#<br\s*/?>#i', "\n", $string); } Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website
Leave a Reply