我不太擅长 php,但我想检测用户是否在网站的主页中,例如;
<?php
if (current path = http://website.com/ || website.com)
{?>
<div>We are in home</div>
<?php } else { ?>
<div>do something</div>
<?php } ?>
请有人帮我谢谢
我不太擅长 php,但我想检测用户是否在网站的主页中,例如;
<?php
if (current path = http://website.com/ || website.com)
{?>
<div>We are in home</div>
<?php } else { ?>
<div>do something</div>
<?php } ?>
请有人帮我谢谢