syntax error, unexpected 'if' (T_IF)

前端 未结 5 575
臣服心动
臣服心动 2020-12-12 02:09

I think I\'ve been staring at this for too long that now I\'m failing to identify the problem.

Can someone kindly point out where this is going wrong?

Error:

5条回答
  •  北海茫月
    2020-12-12 02:47

    You can't use if statements like that.

    To do what you want to achieve you'll need to do this:

    public static function textbox($name, $maxlength=''){
        return "";
    }
    

提交回复
热议问题