src/Boomgo/Formatter/Underscore2CamelFormatter.php
private function camelize($string, $lower = true)
    {
        $words = explode('_', strtolower($string));

        $camelized = '';

        foreach ($words as $word) {
            if (strpos($word, '_') === false) {
                $camelized .= ucfirst(trim($word));
            }
        }

        return ($lower) ? lcfirst($camelized) : $camelized;
    }
private function camelize($string, $lower = true)
    {
        $words = explode('_', strtolower($string));

        $camelized = '';

        foreach ($words as $word) {
            if (strpos($word, '_') === false) {
                $camelized .= ucfirst(trim($word));
            }
        }

        return ($lower) ? lcfirst($camelized) : $camelized;
    }
private function camelize ( $ string , $ lower = true ) { $ words = explode ( '_' , strtolower ( $ string ) ) ; $ camelized = '' ; foreach ( $ words as $ word ) { if ( strpos ( $ word , '_' ) === false ) { $ camelized .= ucfirst ( trim ( $ word ) ) ; } } return ( $ lower ) ? lcfirst ( $ camelized ) : $ camelized ; }
Convert underscored string to lower|upper camelCase

@param string $string An underscored string
@param bool   $lower

@return string

@example my_great_key -> myGreatKey|MyGreatKey
Convert underscored string to lower|upper camelCase