Jump to content

nl2br questions


itdmacar

Recommended Posts

Hi,

 

Can I add a link inside nl2br function ?

 

how do i code this 

 

echo nl2br(An absolute URL: <a href="http://www.w3schools.com">W3Schools</a>); 

 

nl2br's input needs to be a string, add quotations:

 

echo nl2br('An absolute URL: <a href="http://www.w3schools.com">W3Schools</a>');

Link to comment
https://forums.phpfreaks.com/topic/193519-nl2br-questions/#findComment-1018742
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.