src/Library/Helper/Text.php
public static function fromCamelCase($name = '', $replace = '_', $lowerize_first_char = true)
    {
        if (empty($name)) {
            return '';
        }
        if ($lowerize_first_char) {
            $name[0] = strtolower($name[0]);
        }
        $func = create_function('$c', 'return "'.$replace.'" . strtolower($c[1]);');
        return trim(preg_replace_callback('/([A-Z])/', $func, $name), $replace);
    }
public static function fromCamelCase($name = '', $replace = '_', $lowerize_first_char = true)
    {
        if (empty($name)) {
            return '';
        }
        if ($lowerize_first_char) {
            $name[0] = strtolower($name[0]);
        }
        $func = create_function('$c', 'return "'.$replace.'" . strtolower($c[1]);');
        return trim(preg_replace_callback('/([A-Z])/', $func, $name), $replace);
    }
public static function fromCamelCase ( $ name = '' , $ replace = '_' , $ lowerize_first_char = true ) { if ( empty ( $ name ) ) { return '' ; } if ( $ lowerize_first_char ) { $ name [ 0 ] = strtolower ( $ name [ 0 ] ) ; } $ func = create_function ( '$c' , 'return "' . $ replace . '" . strtolower($c[1]);' ) ; return trim ( preg_replace_callback ( '/([A-Z])/' , $ func , $ name ) , $ replace ) ; }
Transform a name from CamelCase to other

@param   string  $name       The string to transform
@param   string  $replace    Replacement character
@param   bool    $lowerize_first_char  May the first letter be in lower case (default is `true`)
@return  string  The un-CamelCase version of `$name`
Transform a name from CamelCase to other