Home  >  Article  >  Backend Development  >  php伪静态的问题

php伪静态的问题

WBOY
WBOYOriginal
2016-06-06 20:12:45704browse

php伪静态的问题
我想问下上面两种写法是不是一样 我测试了结果是一样的 但是不确定

回复内容:

php伪静态的问题
我想问下上面两种写法是不是一样 我测试了结果是一样的 但是不确定

你可以试试在cat_前面加上几个字母,然后再判断下是否一致;
区别在于^符号的使用,有了它,就说明前面不能再含有其他的字符;如果没,即时前面含有其他字符也能成功匹配

第一个匹配cat开头,第二个只匹配包含cat的。比如cat_1.html两个都能匹配,但第二个还能匹配bigcat_1.html、some/cat_1.html这样的。

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