nl2brの読み方

phpで利用される関数の1つである「nl2br」の読み方を掲載してます。
読み⽅
「エムエル・ツー・ビーアール」と読みます。
nl2brとは
phpでは、改行文字の前にHTMLの改行タグである<br>を挿入する関数となります。
<?php
$str = "sebee is site\nsebee is site\nsebee is site";
echo nl2br($str);
実行結果


-
前の記事
onfocusの読み方 2020.09.13
-
次の記事
Solusの読み方 2020.09.14