String to Array
Posted: Sat Feb 14, 2009 12:26 am
Is there a simple way to convert a paragraph of text into an array of sentences?
How would I turn this:
$paragraph = "Sentence number one. Sentence number two. Sentence number three."
...into this:
Array([0]=>"Sentence number one." [1]=>"Sentence number two."[3]=>"Sentence number three.")
Isn't there a split method or something in php?
How would I turn this:
$paragraph = "Sentence number one. Sentence number two. Sentence number three."
...into this:
Array([0]=>"Sentence number one." [1]=>"Sentence number two."[3]=>"Sentence number three.")
Isn't there a split method or something in php?