wordwrap

PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8
wordwrap - Wraps a string to a given number of characters

Example #1 wordwrap example

Result: The quick brown fox<br /> jumped over the lazy<br /> dog.
PHP Version:

Example #2 wordwrap example

Result: A very long wooooooo ooooord.
PHP Version:

Example #3 wordwrap example

Result: A very long woooooooooooooooooord. and something
PHP Version:


Example #4 of wordwrap

PHP Version:


Function wordwrap:

Strings Functions

Most used PHP functions