Created
June 18, 2014 13:32
-
-
Save kvncrw/0ddcdf44982a8d16642d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$generateKpiValue = function($metric_info) { | |
// there's a regexp for this, if you know it, it'd probably be faster | |
$words = explode('_', str_replace('ga_', '', $metric_info['uid'])); | |
foreach($words as &$word) { | |
$word = ucfirst($word); | |
} | |
return join('', $words); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment