Skip to content

Instantly share code, notes, and snippets.

@remibreton
Last active December 17, 2015 22:59
Show Gist options
  • Save remibreton/5685826 to your computer and use it in GitHub Desktop.
Save remibreton/5685826 to your computer and use it in GitHub Desktop.
$str = preg_replace('/([.!?])\s*(\w)/e', "strtoupper('\\1 \\2')", ucfirst(mb_strtolower("this string. it will be. PROCESSED!", "utf-8")));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment