Skip to content

Instantly share code, notes, and snippets.

@timoschinkel
Last active December 14, 2017 16:14
Show Gist options
  • Save timoschinkel/2fea9788115331e999e13c878d42caf8 to your computer and use it in GitHub Desktop.
Save timoschinkel/2fea9788115331e999e13c878d42caf8 to your computer and use it in GitHub Desktop.
<?php
function mb_ucfirst($string) {
return mb_convert_case(mb_substr($string, 0, 1), MB_CASE_UPPER) . mb_substr($string, 1);
}
function mb_ucwords($string) {
return mb_convert_case($string, MB_CASE_TITLE);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment