$string
[, bool $is_xhtml
= true
] )
Returns string
with '<br />' or
'<br>' inserted before all newlines (\r\n,
\n\r, \n and \r).
Anonymous user / 3.144.102.43 Log In Register |
?
Wallet:
3.00
Daily Credits:
1.20 / 1.20
|
This is your credit balance. Even if you are an anonymous user, you are given some credits to spend. Every IP address has its own account and it is provided with free credits that can be used to pay for Online Domain Tools services. Moreover, credit balance is reset every day. This is why we call them Daily Credits. Registered users have higher Daily Credits amounts and can even increase them by purchasing subscriptions.
Besides Daily Credits, all accounts, including IP address accounts of anonymous users, have their credit Wallet. Wallet credits are not reset on a daily basis, but they are only spent when a user has not enough Daily Credits. Registered users can buy credits to their wallets. All IP address accounts are created with an initial Wallet balance of 3.00. Once IP address account spends credits from its Wallet, it can not be charged again. This should allow new users to try most of Online Domain Tools services without registration.
$string
[, bool $is_xhtml
= true
] )
Returns string
with '<br />' or
'<br>' inserted before all newlines (\r\n,
\n\r, \n and \r).
The input string.
Whether to use XHTML compatible line breaks or not.
Returns the altered string.
Example #1 Using nl2br()
<?php
echo nl2br("foo isn't\n bar");
?>
The above example will output:
foo isn't<br /> bar
Version | Description |
---|---|
5.3.0 |
Added the optional is_xhtml parameter.
|
4.0.5 |
nl2br() is now XHTML compliant. All older versions
will return string with '<br>' inserted
before newlines instead of '<br />'.
|