original_string: 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;
      }
    }
code: 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;
      }
    }
code_tokens: 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 ; } }
docstring: 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
docstring_tokens: converts possible shorthand notations from the php ini to bytes .