检查url是否包含某些单词然后显示

ste*_*Kim 6 php

我有以下网址结构.

 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)

谢谢

Jes*_*ica 17

if(strpos($_SERVER['REQUEST_URI'], 'items') !== false){