src/Type/StdString.php
function PascalCase()
    {
        $key = (string) $this;
        
        ## prefix and postfix __ remains; like: __this__
        
        $pos = 'prefix';
        $prefix = '';
        $posfix = '';
        for ($i = 0; $i <= strlen($key)-1; $i++) {
            if ($key[$i] == '_')
                $$pos.='_';
            else {
                $posfix = ''; // reset posix, _ may found within string
                $pos  = 'posfix';
            }
        }

        $r = str_replace(' ', '', ucwords(str_replace('_', ' ', $key)));
        $r = $prefix.$r.$posfix;
        return new self($r);
    }
function PascalCase()
    {
        $key = (string) $this;
        
        ## prefix and postfix __ remains; like: __this__
        
        $pos = 'prefix';
        $prefix = '';
        $posfix = '';
        for ($i = 0; $i <= strlen($key)-1; $i++) {
            if ($key[$i] == '_')
                $$pos.='_';
            else {
                $posfix = ''; // reset posix, _ may found within string
                $pos  = 'posfix';
            }
        }

        $r = str_replace(' ', '', ucwords(str_replace('_', ' ', $key)));
        $r = $prefix.$r.$posfix;
        return new self($r);
    }
function PascalCase ( ) { $ key = ( string ) $ this ; ## prefix and postfix __ remains; like: __this__ $ pos = 'prefix' ; $ prefix = '' ; $ posfix = '' ; for ( $ i = 0 ; $ i <= strlen ( $ key ) - 1 ; $ i ++ ) { if ( $ key [ $ i ] == '_' ) $ $ pos .= '_' ; else { $ posfix = '' ; // reset posix, _ may found within string $ pos = 'posfix' ; } } $ r = str_replace ( ' ' , '' , ucwords ( str_replace ( '_' , ' ' , $ key ) ) ) ; $ r = $ prefix . $ r . $ posfix ; return new self ( $ r ) ; }
Sanitize Underscore To Camelcase

@return StdString
Sanitize Underscore To Camelcase