|
wordwrapWraps a string to a given number of characters Description
string wordwrap
( string
$str
[, int $width = 75
[, string $break = "\n"
[, bool $cut = false
]]] )Wraps a string to a given number of characters using a string break character. Parameters
Return ValuesReturns the given string wrapped at the specified length. Examples
Example #1 wordwrap example
<?php The above example will output: The quick brown fox<br /> jumped over the lazy<br /> dog. Example #2 wordwrap example
<?php The above example will output: A very long wooooooo ooooord. Example #3 wordwrap example
<?php The above example will output: A very long woooooooooooooooooord. and something See Also
|