Home >Backend Development >PHP Tutorial >用什么方法判断提交是否为URL,最好别用正则解决思路

用什么方法判断提交是否为URL,最好别用正则解决思路

WBOY
WBOYOriginal
2016-06-13 10:16:19747browse

用什么方法判断提交是否为URL,最好别用正则
用什么方法判断提交是否为URL,最好别用正则

------解决方案--------------------

探讨

正则也行哈 因为要匹配几乎所有类型的网址 害怕正则有问题
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn