: nl2br « Utility Function « PHP
convert the newlines to
: nl2br « Utility Function « PHP
- PHP
- Utility Function
- nl2br
convert the newlines to
<?php
$recipe = "3
1
8
3";
// convert the newlines to <br />'s.
echo nl2br($recipe);
?>
Related examples in the same category