public static function underscoreToCamelCase($string)
    {
        static $cache = array();

        if (array_key_exists($string, $cache) == true) {
            return $cache[$string];
        }

        $replacer = function(array $matches) {
            return strtoupper($matches[1]);
        };

        return $cache[$string] = preg_replace_callback('/_(.?)/', $replacer, $string);
    }
public static function underscoreToCamelCase($string)
    {
        static $cache = array();

        if (array_key_exists($string, $cache) == true) {
            return $cache[$string];
        }

        $replacer = function(array $matches) {
            return strtoupper($matches[1]);
        };

        return $cache[$string] = preg_replace_callback('/_(.?)/', $replacer, $string);
    }
public static function underscoreToCamelCase ( $ string ) { static $ cache = array ( ) ; if ( array_key_exists ( $ string , $ cache ) == true ) { return $ cache [ $ string ] ; } $ replacer = function ( array $ matches ) { return strtoupper ( $ matches [ 1 ] ) ; } ; return $ cache [ $ string ] = preg_replace_callback ( '/_(.?)/' , $ replacer , $ string ) ; }
Convert a underscore defined string to his camelCase format

@param  string $string

@return string
Convert a underscore defined string to his camelCase format