/**
     * @param $url 网址
     * @return bool
     */
    public static function checkUrl($url){
        $pattern="/^(http|https):\/\/.*$/i";
        if(preg_match($pattern,$url)){
            return true;
        }else{
            return false;
        }
    }

相关文章:

  • 2022-12-23
  • 2021-12-24
  • 2021-08-10
  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案