PHP error: Parse error: syntax error, unexpected end of file... on line 170

This question already has an answer here:

  • PHP parse/syntax errors; and how to solve them? 13 answers

  • function Passwordstuff ($pw, $pw2, $scpw, $pc, $pe)
    {
    $same = strcmp($pw, $pw2);
    if ($same == 0)
    {
        $scpw = hash("sha256", $pw, "true");
        $pc = TRUE;
        $pe = 0;
    } else {
        $pc = FALSE;
        $pe = 1;
    }
    

    Missing closing }

    In case you are interested, have a look at a popular php style guide to help provide a "standard" way to format your code. It may prove to save you time in the long run.

    http://www.php-fig.org/psr/psr-2/

    链接地址: http://www.djcxy.com/p/69240.html

    上一篇: 奇怪的PHP错误:'不能在写入上下文中使用函数返回值'

    下一篇: PHP错误:解析错误:语法错误,文件意外结束...在第170行