public function getSheetByName($pName = '')
    {
        $worksheetCount = count($this->_workSheetCollection);
        for ($i = 0; $i < $worksheetCount; ++$i) {
            if ($this->_workSheetCollection[$i]->getTitle() === $pName) {
                return $this->_workSheetCollection[$i];
            }
        }

        return NULL;
    }
public function getSheetByName($pName = '')
    {
        $worksheetCount = count($this->_workSheetCollection);
        for ($i = 0; $i < $worksheetCount; ++$i) {
            if ($this->_workSheetCollection[$i]->getTitle() === $pName) {
                return $this->_workSheetCollection[$i];
            }
        }

        return NULL;
    }
public function getSheetByName ( $ pName = '' ) { $ worksheetCount = count ( $ this -> _workSheetCollection ) ; for ( $ i = 0 ; $ i < $ worksheetCount ; ++ $ i ) { if ( $ this -> _workSheetCollection [ $ i ] -> getTitle ( ) === $ pName ) { return $ this -> _workSheetCollection [ $ i ] ; } } return NULL ; }
Get sheet by name

@param  string $pName Sheet name
@return PHPExcel_Worksheet
Get sheet by name