code: public static function getOctets($option)
      {
          if (preg_match('/\d+k/i', $option)) {
              return 1024 * (int)$option;
          }
  
          if (preg_match('/\d+m/i', $option)) {
              return 1024 * 1024 * (int)$option;
          }
  
          if (preg_match('/\d+g/i', $option)) {
              return 1024 * 1024 * 1024 * (int)$option;
          }
  
          return $option;
      }
docs: getOctet allow to gets the value of a configuration option in octet
  
  @param string $option
  
  @return int the value of a configuration option in octet