Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function _wordwrap($text) {
- $split = explode(" ", $text);
- foreach($split as $key=>$value) {
- if (strlen($value) > 10) {
- $split[$key] = chunk_split($value, 5, "​");
- }
- }
- return implode(" ", $split);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement