public static function toStudlyCase($input) {
		$input = trim($input, '-_');
		return ucfirst(preg_replace_callback('/([A-Z-_][a-z]+)/', function($matches) {
			return ucfirst(str_replace(['-','_'], '',$matches[0]));
		}, $input));
	}
public static function toStudlyCase($input) {
		$input = trim($input, '-_');
		return ucfirst(preg_replace_callback('/([A-Z-_][a-z]+)/', function($matches) {
			return ucfirst(str_replace(['-','_'], '',$matches[0]));
		}, $input));
	}
public static function toStudlyCase ( $ input ) { $ input = trim ( $ input , '-_' ) ; return ucfirst ( preg_replace_callback ( '/([A-Z-_][a-z]+)/' , function ( $ matches ) { return ucfirst ( str_replace ( [ '-' , '_' ] , '' , $ matches [ 0 ] ) ) ; } , $ input ) ) ; }
Transforms a given input into StudlyCase

@param string $input
@return string
Transforms a given input into StudlyCase