Created
November 17, 2012 03:29
-
-
Save captbaritone/4093058 to your computer and use it in GitHub Desktop.
Only the first and last letters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?=preg_replace_callback("/(?<=[a-zA-Z])([a-zA-Z]+)(?=[a-zA-Z])/", create_function('$n', 'return str_shuffle($n[1]);'), $_POST['text'])?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment