Tuesday, September 2, 2008

nl2br() in php

What is meant by nl2br()?
- nl2br -- Inserts HTML line breaks before all newlines in a string
- Example :
echo nl2br("foo isn't\n bar");
/*output :
foo isn't

bar
*/
?>

No comments:

Popular Posts