src/mako/utility/Str.php
public static function underscored2camel(string $string, bool $upper = false): string
	{
		return preg_replace_callback(($upper ? '/(?:^|_)(.?)/u' : '/_(.?)/u'), function($matches) { return mb_strtoupper($matches[1]); }, $string);
	}
public static function underscored2camel(string $string, bool $upper = false): string
	{
		return preg_replace_callback(($upper ? '/(?:^|_)(.?)/u' : '/_(.?)/u'), function($matches) { return mb_strtoupper($matches[1]); }, $string);
	}
public static function underscored2camel ( string $ string , bool $ upper = false ) : string { return preg_replace_callback ( ( $ upper ? '/(?:^|_)(.?)/u' : '/_(.?)/u' ) , function ( $ matches ) { return mb_strtoupper ( $ matches [ 1 ] ) ; } , $ string ) ; }
Converts underscored to camel case.

@param  string $string The input string
@param  bool   $upper  Return upper case camelCase?
@return string
Converts underscored to camel case .