You are here

public function PHPExcel::getSheetNames in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel.php \PHPExcel::getSheetNames()

Get sheet names

Return value

string[]

File

vendor/phpoffice/phpexcel/Classes/PHPExcel.php, line 719

Class

PHPExcel
PHPExcel

Code

public function getSheetNames() {
  $returnValue = array();
  $worksheetCount = $this
    ->getSheetCount();
  for ($i = 0; $i < $worksheetCount; ++$i) {
    $returnValue[] = $this
      ->getSheet($i)
      ->getTitle();
  }
  return $returnValue;
}