내 코드를 실행할 때이 오류가 발생합니다.구문 분석 오류 : 예기치 않은 구문 오류 ';' 컴파일 오류
는echo $view->;htmlError();
그것은해야한다 :
향후echo $view->htmlError();
, 찾고 시도하십시오
는Parse error: syntax error, unexpected ';', expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in C:\xampp\htdocs\index.php on line 10
PHP 코드
<?php
require_once 'classes/View.php';
require_once 'header.html';
$view = new View();
if ($htmlString = $view->tableThreads()) {
echo $htmlString;
} else {
echo $view->;htmlError();
}
echo $view->buttonPostThread();
require_once 'footer.html';
?>
삭제 가지고,'라인 (10)의'$보기 ->'후. – kao3991