PHP error: Parse error: syntax error, unexpected end of file... on line 170
This question already has an answer here:
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