PHP nl2br() May 22, 2012 Pramod T P It inserts HTML line breaks before all newlines in a string Example <?php echo nl2br(“phpncode “); ?> Output php code