国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
655B

  1. <?php if(!defined('DEDEINC')) exit('dedecms');
  2. /**
  3. * 验证小助手
  4. *
  5. * @version $Id: validate.helper.php 1 2010-07-05 11:43:09Z tianya $
  6. * @package DedeCMS.Helpers
  7. * @copyright Copyright (c) 2020, DedeBIZ.COM
  8. * @license https://www.dedebiz.com/license
  9. * @link https://www.dedebiz.com
  10. */
  11. //邮箱格式检查
  12. if ( ! function_exists('CheckEmail'))
  13. {
  14. function CheckEmail($email)
  15. {
  16. if (!empty($email))
  17. {
  18. return preg_match('/^[a-z0-9]+([\+_\-\.]?[a-z0-9]+)*@([a-z0-9]+[\-]?[a-z0-9]+\.)+[a-z]{2,6}$/i', $email);
  19. }
  20. return FALSE;
  21. }
  22. }