no message

This commit is contained in:
kuaifan
2021-06-16 22:37:28 +08:00
parent face5a943d
commit 7c6dcc3daa
16 changed files with 601 additions and 241 deletions

View File

@@ -914,6 +914,16 @@ class Base
return true;
}
/**
* 检测 日期格式 或 时间格式
* @param string $str 需要检测的字符串
* @return bool
*/
public static function isDateOrTime($str)
{
return self::isDate($str) || self::isTime($str);
}
/**
* 检测手机号码格式
* @param string $str 需要检测的字符串