private static function studly($string) { return str_replace(' ', '', ucwords(str_replace(array('-', '_'), ' ', $string))); }