Skip to content

Instantly share code, notes, and snippets.

@sajadtorkamani
Created June 2, 2015 11:53
Show Gist options
  • Save sajadtorkamani/0069048280f45324b6b4 to your computer and use it in GitHub Desktop.
Save sajadtorkamani/0069048280f45324b6b4 to your computer and use it in GitHub Desktop.
<?php
function beautifyString($string)
{
$beautifiedString = strtr($string, array('-' => ' '));
$beautifiedString = ucwords($beautifiedString);
return $beautifiedString;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment