Thread
:
PHP code to rearrange sentances??
View Single Post
05-11-2012, 10:24 PM
Dcat
Confirmed User
Industry Role:
Join Date: Aug 2003
Location: Mexico
Posts: 1,607
Quote:
Originally Posted by
Brujah
$sentences = preg_split( '/\.|\!+/', $s);
array_map( 'trim', $sentences);
echo implode( '. ', $sentences );
Thanks.
I might have to go ahead and roll my own using something similar.
Dcat
View Public Profile
Find More Posts by Dcat