나는이 코드를 실행하면 내가 메시지를 얻을 :PHP EOT 오류 메시지
function print_footer(){
global $file;
echo <<<EOT
<center>
<a href="$file?op=vote"> Vote </a> |
<a href="$file?op=admin"> Admin </a> |
<hr>
$copy; 2012, Shibbir Ahmed, All Rights Reserved.
</center>
</body>
</html>
EOT;
}
오류 메시지 :
Parse error: syntax error, unexpected $end in D:\xampp server\xampp\htdocs\practice \function.php on line ...
이 PHP 코드의 문제점은 무엇입니까?
좋아요,이게 <<< EOT의 업데이트입니다. – Babu
'EOT;'의 끝나기 전후에 공백, 탭 또는 다른 것이 없습니까? –
네, 100 % 확신합니다. – Babu