private static function getUploadMaxFileSizeInBytes() {
    $val = trim(ini_get('upload_max_filesize'));
    $unit = strtolower(substr($val, -1));
    switch ($unit) {
      case 'g':
        $val *= 1024;
        // Fall through
      case 'm':
        $val *= 1024;
        // Fall through
      case 'k':
        $val *= 1024;
        break;
    }
    return intval($val);
  }
private static function getUploadMaxFileSizeInBytes() {
    $val = trim(ini_get('upload_max_filesize'));
    $unit = strtolower(substr($val, -1));
    switch ($unit) {
      case 'g':
        $val *= 1024;
        // Fall through
      case 'm':
        $val *= 1024;
        // Fall through
      case 'k':
        $val *= 1024;
        break;
    }
    return intval($val);
  }
private static function getUploadMaxFileSizeInBytes ( ) { $ val = trim ( ini_get ( 'upload_max_filesize' ) ) ; $ unit = strtolower ( substr ( $ val , - 1 ) ) ; switch ( $ unit ) { case 'g' : $ val *= 1024 ; // Fall through case 'm' : $ val *= 1024 ; // Fall through case 'k' : $ val *= 1024 ; break ; } return intval ( $ val ) ; }
Convert the upload_max_filesize ini setting to a number of bytes.

@return int The value of the upload_max_filesize in bytes.

@access private
Convert the upload_max_filesize ini setting to a number of bytes .