次のスニペットは、if
ブロック内の条件をチェックする場所で 2 つの構文エラーを示します
public function __construct() {
if(isset($_POST['update_email')) { # First syntax error
$this->email = $_POST['update_email'];
}
if(isset($_POST['password')) { # Second syntax error
$this->password = $_POST['password'];
}
}
構文エラーを見つけることができません。それは何ですか ?