code: public function namedRangeToArray($pNamedRange, $nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false)
      {
          $namedRange = NamedRange::resolveRange($pNamedRange, $this);
          if ($namedRange !== null) {
              $pWorkSheet = $namedRange->getWorksheet();
              $pCellRange = $namedRange->getRange();
  
              return $pWorkSheet->rangeToArray($pCellRange, $nullValue, $calculateFormulas, $formatData, $returnCellRef);
          }
  
          throw new Exception('Named Range ' . $pNamedRange . ' does not exist.');
      }
docs: Create array from a range of cells.
  
  @param string $pNamedRange Name of the Named Range
  @param mixed $nullValue Value returned in the array entry if a cell doesn't exist
  @param bool $calculateFormulas Should formulas be calculated?
  @param bool $formatData Should formatting be applied to cell values?
  @param bool $returnCellRef False - Return a simple array of rows and columns indexed by number counting from zero
  True - Return rows and columns indexed by their actual row and column IDs
  
  @throws Exception
  
  @return array