src/StringHelper.php
public static function toCamelCase($string) {
		static $canUse = null;
		if (is_null($canUse)) {
			$canUse = method_exists(Strings::class, 'firstLower'); // Nette/Utils >= 2.3 only
		}
		$pascal = self::toPascalCase($string);
		return $canUse
			? Strings::firstLower($pascal)
			: Strings::lower(Strings::substring($pascal, 0, 1)) . Strings::substring($pascal, 1);
	}
public static function toCamelCase($string) {
		static $canUse = null;
		if (is_null($canUse)) {
			$canUse = method_exists(Strings::class, 'firstLower'); // Nette/Utils >= 2.3 only
		}
		$pascal = self::toPascalCase($string);
		return $canUse
			? Strings::firstLower($pascal)
			: Strings::lower(Strings::substring($pascal, 0, 1)) . Strings::substring($pascal, 1);
	}
public static function toCamelCase ( $ string ) { static $ canUse = null ; if ( is_null ( $ canUse ) ) { $ canUse = method_exists ( Strings :: class , 'firstLower' ) ; // Nette/Utils >= 2.3 only } $ pascal = self :: toPascalCase ( $ string ) ; return $ canUse ? Strings :: firstLower ( $ pascal ) : Strings :: lower ( Strings :: substring ( $ pascal , 0 , 1 ) ) . Strings :: substring ( $ pascal , 1 ) ; }
Converts the given string to "camelCase".
@param string $string
@return string
Converts the given string to camelCase .