Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. function _wordwrap($text)   {
  2.     $split = explode(" ", $text);
  3.     foreach($split as $key=>$value)   {
  4.         if (strlen($value) > 10)    {
  5.             $split[$key] = chunk_split($value, 5, "​");
  6.         }
  7.     }
  8.     return implode(" ", $split);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement