Jump to content

[SOLVED] n12br()


jakebur01

Recommended Posts

I am getting a PHP Fatal error: Call to undefined function n12br(). Is their another function close to this that will take a string as a parameter and replace all the newlines in it with the xhtml <br /> tag or the <br> tag?

 

Example:

$mailcontent = 'Customer name: '.$name."\n"
.'Customer email: '.$email."\n"
."Customer comments: \n".$feedback."\n";

<p><?php echo n12br($mailcontent); ?></p>

Link to comment
https://forums.phpfreaks.com/topic/47268-solved-n12br/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.