code: private function writeShortNameBiff8($name, $sheetIndex, $rangeBounds, $isHidden = false)
      {
          $record = 0x0018;
  
          // option flags
          $options = ($isHidden ? 0x21 : 0x00);
  
          $extra = pack(
              'Cvvvvv',
              0x3B,
              $sheetIndex - 1,
              $rangeBounds[0][1] - 1,
              $rangeBounds[1][1] - 1,
              $rangeBounds[0][0] - 1,
              $rangeBounds[1][0] - 1
          );
  
          // size of the formula (in bytes)
          $sz = strlen($extra);
  
          // combine the parts
          $data = pack('vCCvvvCCCCC', $options, 0, 1, $sz, 0, $sheetIndex, 0, 0, 0, 0, 0)
              . $name . $extra;
          $length = strlen($data);
  
          $header = pack('vv', $record, $length);
  
          return $header . $data;
      }
docs: Write a short NAME record.
  
  @param string $name
  @param string $sheetIndex 1-based sheet index the defined name applies to. 0 = global
  @param integer[][] $rangeBounds range boundaries
  @param bool $isHidden
  
  @return string Complete binary record data