library/Garp/Util/String.php
static public function underscoredToCamelcased($str, $ucfirst = false) {
        if ($ucfirst) {
            $str = ucfirst($str);
        }
        $func = f\compose('strtoupper', f\prop(1));
        return preg_replace_callback('/_([a-z])/', $func, $str);
    }
static public function underscoredToCamelcased($str, $ucfirst = false) {
        if ($ucfirst) {
            $str = ucfirst($str);
        }
        $func = f\compose('strtoupper', f\prop(1));
        return preg_replace_callback('/_([a-z])/', $func, $str);
    }
static public function underscoredToCamelcased ( $ str , $ ucfirst = false ) { if ( $ ucfirst ) { $ str = ucfirst ( $ str ) ; } $ func = f \ compose ( 'strtoupper' , f \ prop ( 1 ) ) ; return preg_replace_callback ( '/_([a-z])/' , $ func , $ str ) ; }
Converts 'doggy_dog_world_id' to 'doggyDogWorldId'

@param string $str
@param bool $ucfirst Wether to uppercase the fist character
@return string
Converts doggy_dog_world_id to doggyDogWorldId