str_split complete words

Started on the old forum in November 2013 · view the original in the archive · old links redirect here

3 replies · 445 views · started 13 years ago · 1 min read

2 participants
pmbguy Senior · 344 posts #1

ok, i'm trying to figure out how to break a chunk of text into portions less than 100 characters long. i am trying str_split, but that seems to break words up, ie if the word 'the' is characters 99 - 101, it will end one piece with half a word n leave remaining characters at the start of the next piece...

trying to figure ot how to keep pieces under 100 characters but with complete words...

arnage Lead · 811 posts #4

You are welcome. 😉

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close