src/Mouf/Mvc/Splash/Routers/PhpVarsCheckRouter.php
private static function iniGetBytes($val)
    {
        $val = trim(ini_get($val));
        if ($val != '') {
            $last = strtolower(
                $val{strlen($val) - 1}
            );
        } else {
            $last = '';
        }
        $val = (int) $val;
        switch ($last) {
            // The 'G' modifier is available since PHP 5.1.0
            case 'g':
                $val *= 1024;
            case 'm':
                $val *= 1024;
            case 'k':
                $val *= 1024;
        }

        return $val;
    }
private static function iniGetBytes($val)
    {
        $val = trim(ini_get($val));
        if ($val != '') {
            $last = strtolower(
                $val{strlen($val) - 1}
            );
        } else {
            $last = '';
        }
        $val = (int) $val;
        switch ($last) {
            // The 'G' modifier is available since PHP 5.1.0
            case 'g':
                $val *= 1024;
            case 'm':
                $val *= 1024;
            case 'k':
                $val *= 1024;
        }

        return $val;
    }
private static function iniGetBytes ( $ val ) { $ val = trim ( ini_get ( $ val ) ) ; if ( $ val != '' ) { $ last = strtolower ( $ val { strlen ( $ val ) - 1 } ) ; } else { $ last = '' ; } $ val = ( int ) $ val ; switch ( $ last ) { // The 'G' modifier is available since PHP 5.1.0 case 'g' : $ val *= 1024 ; case 'm' : $ val *= 1024 ; case 'k' : $ val *= 1024 ; } return $ val ; }
Returns the number of bytes from php.ini parameter.

@param $val

@return int|string
Returns the number of bytes from php . ini parameter .