如果url是/ store / * [英] If url is /store/*
本文介绍了如果url是/ store / *的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<?php
if($_SERVER['REQUEST_URI']=='/store/') {
Echo 'YES!';
}
?>
我想要它做的是echo YES!如果url是/ store / hfbfifigkrigkg或者它的/ store / hellosister
所以我需要类似*在其他语言中使用的东西作为一切
What I want it to do is echo YES! If the url is /store/hfbfifigkrigkg or if its /store/hellosister So I need something like the * who is used in other languanges as EVERYTHING
谢谢
推荐答案
这可能有效:
if( preg_match("(^/store/)",$_SERVER['REQUEST_URI'])) echo "Yes!";
这篇关于如果url是/ store / *的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文