Thread
:
PHP code to rearrange sentances??
View Single Post
05-12-2012, 08:31 AM
Brujah
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
Quote:
Originally Posted by
CyberSEO
Or even shorter:
preg_match_all('/.*?[\?|\.\.\.|\.|\!]+/s', $s, $sentences);
shuffle($sentences[0]);
echo implode(' ', array_map('trim', $sentences[0]));
I was drunk coding! I'll take a look and give it a try.
__________________
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