Insert line breaks where newlines (\n) occur in the string in PHP
Description
The following code shows how to insert line breaks where newlines (\n) occur in the string.
Example
<?php
echo nl2br("One line.\nAnother line.");
?>
The code above generates the following result.