shadybrooksoftware / year-strings
解析年份和年份范围字符串的函数。
v1.0
2020-11-01 02:16 UTC
Requires
- php: >=7
- markwilson/array-flatten: ^1.0
Requires (Dev)
- phpunit/phpunit: ^9.4
This package is not auto-updated.
Last update: 2024-09-30 19:22:54 UTC
README
一个用于解析年份和年份范围字符串的PHP库。
使用方法
$years = \ShadyBrookSoftware\YearStrings\parseYearsString("1980,1982-1984,1990");
/* $years will be => [1980, 1982, 1983, 1984, 1990] */