application/Espo/Core/Utils/Util.php
public static function toCamelCase($name, $symbol = '_', $capitaliseFirstChar = false)
    {
        if (is_array($name)) {
            foreach ($name as &$value) {
                $value = static::toCamelCase($value, $symbol, $capitaliseFirstChar);
            }

            return $name;
        }

        $name = lcfirst($name);
        if ($capitaliseFirstChar) {
            $name = ucfirst($name);
        }

        return preg_replace_callback('/'.$symbol.'([a-zA-Z])/', 'static::toCamelCaseConversion', $name);
    }
public static function toCamelCase($name, $symbol = '_', $capitaliseFirstChar = false)
    {
        if (is_array($name)) {
            foreach ($name as &$value) {
                $value = static::toCamelCase($value, $symbol, $capitaliseFirstChar);
            }

            return $name;
        }

        $name = lcfirst($name);
        if ($capitaliseFirstChar) {
            $name = ucfirst($name);
        }

        return preg_replace_callback('/'.$symbol.'([a-zA-Z])/', 'static::toCamelCaseConversion', $name);
    }
public static function toCamelCase ( $ name , $ symbol = '_' , $ capitaliseFirstChar = false ) { if ( is_array ( $ name ) ) { foreach ( $ name as & $ value ) { $ value = static :: toCamelCase ( $ value , $ symbol , $ capitaliseFirstChar ) ; } return $ name ; } $ name = lcfirst ( $ name ) ; if ( $ capitaliseFirstChar ) { $ name = ucfirst ( $ name ) ; } return preg_replace_callback ( '/' . $ symbol . '([a-zA-Z])/' , 'static::toCamelCaseConversion' , $ name ) ; }
Convert name to Camel Case format, ex. camel_case to camelCase

@param  string  $name
@param  string | array  $symbol
@param  boolean $capitaliseFirstChar

@return string
Convert name to Camel Case format ex . camel_case to camelCase