original_string: private function convertToBytes($strSize)
      {
          switch (strtolower(substr($strSize, - 1))) {
              case 'm':
                  return (int) $strSize * 1048576;
              case 'k':
                  return (int) $strSize * 1024;
              case 'g':
                  return (int) $strSize * 1073741824;
              default:
                  return $strSize;
          }
      }
code: private function convertToBytes($strSize)
      {
          switch (strtolower(substr($strSize, - 1))) {
              case 'm':
                  return (int) $strSize * 1048576;
              case 'k':
                  return (int) $strSize * 1024;
              case 'g':
                  return (int) $strSize * 1073741824;
              default:
                  return $strSize;
          }
      }
code_tokens: private function convertToBytes ( $ strSize ) { switch ( strtolower ( substr ( $ strSize , - 1 ) ) ) { case 'm' : return ( int ) $ strSize * 1048576 ; case 'k' : return ( int ) $ strSize * 1024 ; case 'g' : return ( int ) $ strSize * 1073741824 ; default : return $ strSize ; } }
docstring: Convert file size to bytes
  
  @param string $strSize File size to convert
  @return string
docstring_tokens: Convert file size to bytes