Answers for "nl2br is not working for database in php"

PHP
0

nl2br is not working for database in php

$comments = stripcslashes($row["comments"]);

$commentsWithBreaks = nl2br($comments);

echo $commentsWithBreaks;
Posted by: Guest on August-24-2021

Browse Popular Code Answers by Language