Splitting up a very long 'word' in a string
Date: 05/21/07
(PHP Community) Keywords: no keywords
I'm familiar with wordwrap, but is there a similar function which will limit the size of a 'word'? In other words, is there a built-in function which will turn this:
asdfasdfasdfasdfsafsadfasdfasdfsadfasfsafsadfsadfsadfasfsafsafsafsafsadfsadfsadfsadfasfasfsdsdafsadfsadf
into this:
asdfasdfsafdsafdsafdsadfsdaf
asdfasdfsadfsadfsadfsadfsdaf
asdfasdfsadfsafsadfasfsadfsda
saddfsadfsafsafsafsafsdfsadf
Source: http://community.livejournal.com/php/567439.html