Php related Interview questions and answers
Saturday, 31 March 2012
Q: What is nl2b.
nl2br
—
Inserts HTML line breaks before all newlines in a string
<?php
echo
nl2br
(
"Welcome\r\nThis is my HTML document"
,
false
);
?>
Welcome<br>
This is my HTML document
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment