What is meant by nl2br()?
Answers were Sorted based on User's Feedback
Answer / sreedevi
returns a string with " inserted before all newlines
nl2br() inserts html in string
ex:
echo nl2br("God bless\nu");
output:
God bless
u
| Is This Answer Correct ? | 13 Yes | 3 No |
Answer / deepak b
The Answer is :
New Line to Html Brake <br>
function void nl2br(text,isXHTML)
if you are using xhtml then
nl2br(text,true) then function insert <br />
else
nl2br(text,false) then <br>
Enjoy..... My Friend.
| Is This Answer Correct ? | 1 Yes | 2 No |
Explain what is meant by pear in php?
if i give Limit for mysql query through php command line script like this for ex. $limit=500; $total_items = 1500; for($start=0;$start<$total_items;){ $command = "/usr/bin/php -q /home/sitename/public_html/admin/feedmanager/test.php feedid ".$_GET['feedid']." start ".$start." end ".$limit ; $start = $start+$limit; $command_result = system($command); } so it's execute command for 3 times so it give limit to sql query but if i have 27000 data so it takes long time? so my question is that is that any way from php command line script that i can use for collect all the data at once?
Swap two variables value without using third variable in php ?
Does php support polymorphism?
how to overcome server time behind twleve hours compare to local system time
How is php different from other languages?
What is meant by urlencode and urldocode?
What is $this in php?
What is the use of post in php?
How to convert a character to an ascii value?
Explain setcookie() function in php?
How to use validations in php?(codelgniter)