Looking for a php script which allows the following.
- A paragraph if text is input.
- The paragraph is then manipulated so:
a) the words are in the same order
b) the first an last letters of each word are kept constant
c) the 'inner' letters of each word are randomised.
d) the case of each letter (upper / lower) must be preserved
e) Punctuation must be preserved in the same place within the word and within the sentence.
"According to research at Cambridge University. it doesn't matter in what order the letters in a word are, the only important thing is that the first and last letter be in the right place. "
Could end up as:
"Aoccdrnig to rsceearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoatnt tihng is taht the frist and last ltteer be in the rghit pclae. "