麻烦If语句PHP [英] Trouble With If statement PHP

查看:81
本文介绍了麻烦If语句PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在已经为PHP编写了9个月的脚本,并开始遇到如果条件有问题的情况。

I have been scripting PHP for for about 9 months now and im starting to run into a problem with my if conditions. This has never happened before.

if ($reason != "9ee1e1f4fbf1"){
    XXXXXXXXX
}

我甚至尝试将9ee1ef4fbf1放在括号内,并且没有奏效。
i继续收到:

I even tried putting the 9ee1ef4fbf1 in parenthesis and that didnt work. i keep getting this:

Parse error: syntax error, unexpected T_IF in /home/content/49/549/html/index.php on line 21


推荐答案

问题是在上面的行中,if。也许忘了一个分号?

The problem is in the line above the if. Maybe forgot a semicolon?

这篇关于麻烦If语句PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆