hi all, just playing around and learning a little about strings and arrays and so on. And documenting so that i can refer back if ever i need to use these snippets..

so far i have this bit i just cant get my head around..

I can take a string a paragraph, and split it into sentences (sentences into array).
How would i split the array into smaller chunks and echo them out?

Instead Id like to have x3 paragraphs instead of one.

preg_match_all('/[A-Z](.+?)\./', $string,$s);

//to echo out as 1 paragraph
foreach($s[0] as $sb){
    $wholeparagraph.="$sb ";
    }
echo $wholeparagraph;

Can someone suggest a way to do it?

    Write a Reply...