PHP 8.5.0 Alpha 4 available for testing

Voting

: six minus six?
(Example: nine)

The Note You're Voting On

N/A
16 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