Say your sentence was:
"My dogs name is Scruffy. He has a loud bark. He needs a bath."
To only print the first two sentences you would do the following:
$sentence = "My dogs name is Scruffy. He has a loud bark. He needs a bath.";
$sentence = explode(".", $sentence);
This stores each sentence in an array minus the full stop.
Therefore,
$sentence[0] = "My dogs name is Scruffy"
$sentence[1] = "He has a loud bark";
$sentence[2] = "He needs a bath"
To print only the first two sentences out:
$content = $sentence[0].". ".$sentence[1].". ";
echo $content;
Ive tested this and it works.
-vivianp