Tag Archives: String

wordwrap()

It wraps a string into new lines when it reaches a specific length.

Example

<?php
echo wordwrap(“It wraps a string into new lines when it reaches a specific length”,5);
?>

Output

It wraps a string into new lines when it reaches a specific length