$str
[, int $width
= 75
[, string $break
= "\n"
[, bool $cut
= false
]]] )
Wraps a string to a given number of characters using a string break character.
Anonymous user / 3.23.101.75 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.
$str
[, int $width
= 75
[, string $break
= "\n"
[, bool $cut
= false
]]] )
Wraps a string to a given number of characters using a string break character.
The input string.
The number of characters at which the string will be wrapped.
The line is broken using the optional
break
parameter.
If the cut
is set to TRUE
, the
string is
always wrapped at or before the specified width. So if you have
a word that is larger than the given width, it is broken apart.
(See second example).
Returns the given string wrapped at the specified length.
Example #1 wordwrap() example
<?php
$text = "The quick brown fox jumped over the lazy dog.";
$newtext = wordwrap($text, 20, "<br />\n");
echo $newtext;
?>
The above example will output:
The quick brown fox<br /> jumped over the lazy<br /> dog.
Version | Description |
---|---|
4.0.3 |
The optional cut parameter was added.
|