forumnz Posted May 2, 2009 Share Posted May 2, 2009 I have a variable which is a few hundred characters of text. How can I insert a break every 100 chars, without breaking right through a word itself? Thanks Sam Link to comment https://forums.phpfreaks.com/topic/156478-insert-break-every-100-chars/ Share on other sites More sharing options...
Ken2k7 Posted May 2, 2009 Share Posted May 2, 2009 So what should the code do if the hundredth character is part of a word? Link to comment https://forums.phpfreaks.com/topic/156478-insert-break-every-100-chars/#findComment-823978 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.