您好 $mostamazingforumforfastanswersever。
我有一个愚蠢的问题;写这个的最好方法是什么:
if ($curpageurl == "www.mysite.com/this" || "www.mysite.com/this/")
{
echo 'this is the this page';
}
如果不是,那么我需要打电话
while (isset($somevariable)
{
echo '$somevariable';
}
如果该变量未设置并且我们不在此页面上,那么
else
{
echo 'we are not on this page and the variable isn't set';
}
我知道我离正确答案不远了,这实际上是按原样工作的,但前提是我删除了 || 我的第一个 if 语句的 this/ 部分。有没有更好的方法来编写或等于部分?|| == 例如?谢谢!