public static function toClassCase($string) { return str_replace(' ', '', ucwords(str_replace('_', ' ', $string))); }