What's a good strategy to get full words into an array with its succeeding character.
Example.
This is an amazing sentence.
Array(
[0] => This
[1] => is
[2] => an
[3] => amazing
[4] => sentence.
)
Elements 0 - 3 would have a succeeding space, as a period succeeds the 4th element.
I need you to split these by spacing character,
Then once width of element with injected array elements reaches X,
Break into a new line.
Please, gawd don't give tons of code. I prefer to write my own just tell me how you would do it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…