Thread
:
PHP code to rearrange sentances??
View Single Post
05-11-2012, 09:19 PM
Brujah
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
$sentences = preg_split( '/\.|\!+/', $s);
array_map( 'trim', $sentences);
echo implode( '. ', $sentences );
__________________
Free Premium Domain Lists and Tools at
Clickmojo.com
For Sale:
Obscenity.com
Brujah
View Public Profile
Visit Brujah's homepage!
Find More Posts by Brujah