Hi guys.
So, I'm just trying this tutorial on checkbox and whatever I check is supposed to appear on the check.php. However, it displays
"; } } ?> instead. I've been trying to fix it but failed. I've checked that I saved it in .php.

Also, can anyone tell me what's ANSI? Because
here, it says that I might need to save it as ANSI but I don't know how to do so because I can't find the option.

Here is my php file:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Check</title>
</head>
<body>
<?php
if ($_POST['sub']){
$check = $_POST['check'];
foreach($check as $ch){
echo $ch."<br>";
}
}
?>
</body>
</html>
Thanks in advance!