src/Web2All/Manager/Main.class.php
public static function getBytes($size_str)
  {
    switch (substr ($size_str, -1))
    {
      case 'M': case 'm': return (int)$size_str * 1048576;
      case 'K': case 'k': return (int)$size_str * 1024;
      case 'G': case 'g': return (int)$size_str * 1073741824;
      default: return $size_str;
    }
  }
public static function getBytes($size_str)
  {
    switch (substr ($size_str, -1))
    {
      case 'M': case 'm': return (int)$size_str * 1048576;
      case 'K': case 'k': return (int)$size_str * 1024;
      case 'G': case 'g': return (int)$size_str * 1073741824;
      default: return $size_str;
    }
  }
public static function getBytes ( $ size_str ) { switch ( substr ( $ size_str , - 1 ) ) { case 'M' : case 'm' : return ( int ) $ size_str * 1048576 ; case 'K' : case 'k' : return ( int ) $ size_str * 1024 ; case 'G' : case 'g' : return ( int ) $ size_str * 1073741824 ; default : return $ size_str ; } }
converts possible shorthand notations from the php ini
to bytes.

see: http://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes

original code from: http://nl2.php.net/manual/en/function.ini-get.php#96996

@return int
converts possible shorthand notations from the php ini to bytes .