以下是代码:
<?php
session_start();
$redCo = $_SESSION['tagRedFamily'];
$blueCo = $_SESSION['tagBlueFamily'];
$greenCo = $_SESSION['tagGreenFamily'];
if ($redCo == true) {
echo "0";
if ($blueCo == true) {
echo "1";
if ($greenCo == true) {
echo "2";
}
?>
它给了我以下错误:
解析错误:语法错误,第26行
/Applications/XAMPP/xamppfiles/htdocs/Experiments/Tags/tagWorker.php
中意外的文件结尾
有谁知道为什么?