Interviewer And Interviewee Guide

PHP Interview Question:

What is meant by nl2br()?

Submitted by: Administrator
Anwser1:
nl2br() inserts a HTML tag <br> before all new line characters n in a string.

echo nl2br("god bless n you");

output:
god bless<br>
you
Submitted by: Administrator

Read Online PHP Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.