kuleshov/check-correct-parenthesis

一个包,允许检查字符串中括号的正确性

1.0.1 2023-03-06 12:21 UTC

This package is auto-updated.

Last update: 2024-09-24 13:19:27 UTC


README

## 安装

composer require kuleshov/check-correct-parenthesis

### 信息

在 StringCorrect 类的 checkParenthesis 方法中,需要传递要处理的那条字符串。

字符串可以包含符号 “(“,”)”,空格(“ ”),换行符(“\n”),制表符(“\t”),回车符(“\r”)。如果字符串包含除上述符号之外的内容,则该包将抛出 InvalidArgumentException 异常。字符串长度没有限制。