src/GoogleDriveAdapter.php
protected function getIniBytes($iniName = '', $val = '')
    {
        if ($iniName !== '') {
            $val = ini_get($iniName);
            if ($val === false) {
                return 0;
            }
        }
        $val = trim($val, "bB \t\n\r\0\x0B");
        $last = strtolower($val[strlen($val) - 1]);
        $val = (int)$val;
        switch ($last) {
            case 't':
                $val *= 1024;
            case 'g':
                $val *= 1024;
            case 'm':
                $val *= 1024;
            case 'k':
                $val *= 1024;
        }
        return $val;
    }
protected function getIniBytes($iniName = '', $val = '')
    {
        if ($iniName !== '') {
            $val = ini_get($iniName);
            if ($val === false) {
                return 0;
            }
        }
        $val = trim($val, "bB \t\n\r\0\x0B");
        $last = strtolower($val[strlen($val) - 1]);
        $val = (int)$val;
        switch ($last) {
            case 't':
                $val *= 1024;
            case 'g':
                $val *= 1024;
            case 'm':
                $val *= 1024;
            case 'k':
                $val *= 1024;
        }
        return $val;
    }
protected function getIniBytes ( $ iniName = '' , $ val = '' ) { if ( $ iniName !== '' ) { $ val = ini_get ( $ iniName ) ; if ( $ val === false ) { return 0 ; } } $ val = trim ( $ val , "bB \t\n\r\0\x0B" ) ; $ last = strtolower ( $ val [ strlen ( $ val ) - 1 ] ) ; $ val = ( int ) $ val ; switch ( $ last ) { case 't' : $ val *= 1024 ; case 'g' : $ val *= 1024 ; case 'm' : $ val *= 1024 ; case 'k' : $ val *= 1024 ; } return $ val ; }
Return bytes from php.ini value

@param string $iniName
@param string $val
@return number
Return bytes from php . ini value