What is meant by nl2br()?
Answers were Sorted based on User's Feedback
Answer / sonal
Returns string with '<br />' inserted before all newlines.
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / ram
The nl2br() function inserts HTML line breaks (<br />) in
front of each newline (\n) in a string
Syntax: nl2br(string)
<?php
echo nl2br("One line.\nAnother line.");
?>
output: One line.
Another line.
| Is This Answer Correct ? | 11 Yes | 1 No |
Is python easier than php?
What type of language is php?
What is the functionality of the functions strstr() and stristr()?
What is the difference between include and include_once ? Which is one is good in terms of performance ?
hey i m a trainee n jus wanted to ask that initially i was given the opportunity for .NET bt that project is abt to complete , nw i m asked to join a project of php on linux which is about to start , so wt say . is it a wise decision to join this project . will i be having job opportunities when i l complete my training after 4 months ? Plz suggest something ASAP .
What is == and === in php?
Which function would you use to insert a record into a database in php?
Is multiple inheritance supported in php?
What is $this in php?
How can we send mail using JavaScript?
What is meant by ‘passing the variable by value and reference' in php?
Which function will you use to create an array?