我有以下网址结构.
example.com/items/something_something.
Run Code Online (Sandbox Code Playgroud)
什么是PHP代码来检查该网址包含单词"items"然后显示某些div?
<?php if () { ?> <!--Check if url contains the word "items" -->
Show this
<?php } else { ?>
Don't show this
<?php } ?>
Run Code Online (Sandbox Code Playgroud)
谢谢
| 归档时间: |
|
| 查看次数: |
21597 次 |
| 最近记录: |