Created
December 17, 2019 16:04
-
-
Save MartinTale/b8a6376d7f7fd0012355d253a55f3eae to your computer and use it in GitHub Desktop.
Converts slug to human readable string..
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
<?php | |
if (!function_exists('slugToHumanReadable')) { | |
function slugToHumanReadable($slug) | |
{ | |
return ucwords(str_replace('-', ' ', $slug)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment