nl2br
laravel/octane
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Inserts HTML line breaks before all newlines in a string
<?php nl2br
(
string $string
,
bool $use_xhtml
=
true
):
string