Box\Spout\Reader\XLSX\Helper\SharedStringsHelper::hasSharedStrings PHP Method

hasSharedStrings() public method

Returns whether the XLSX file contains a shared strings XML file
public hasSharedStrings ( ) : boolean
return boolean
    public function hasSharedStrings()
    {
        $hasSharedStrings = false;
        $zip = new \ZipArchive();
        if ($zip->open($this->filePath) === true) {
            $hasSharedStrings = $zip->locateName(self::SHARED_STRINGS_XML_FILE_PATH) !== false;
            $zip->close();
        }
        return $hasSharedStrings;
    }