Box\Spout\Writer\Common\Sheet::doesContainInvalidCharacters PHP Method

doesContainInvalidCharacters() protected method

Returns whether the given name contains at least one invalid character.
See also: Sheet::$INVALID_CHARACTERS_IN_SHEET_NAME for the full list.
protected doesContainInvalidCharacters ( string $name ) : boolean
$name string
return boolean TRUE if the name contains invalid characters, FALSE otherwise.
    protected function doesContainInvalidCharacters($name)
    {
        return str_replace(self::$INVALID_CHARACTERS_IN_SHEET_NAME, '', $name) !== $name;
    }