PHP 8.4.24 Released!

Voting

: six minus five?
(Example: nine)

The Note You're Voting On

N/A
17 years ago
Here's a more simple one:

<?php
/**
 * Convert BR tags to nl
 *
 * @param string The string to convert
 * @return string The converted string
 */
function br2nl($string)
{
    return preg_replace('/\<br(\s*)?\/?\>/i', "\n", $string);
}
?>

Enjoy

<< Back to user notes page

To Top