1
is giving error in my code and I do not know why..
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<?php
echo <<<_END
isso e um teste
_END;
?>
</body>
</html>
this error is appearing
Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in C:\Program Files (x86)\Ampps\www\php\apenasteste.php on line 17
i am using an apache server AMPPS to write my pages.
Open things in the answer that would be interesting to explain: 1) No need to use heredoc, but why change? 2) What is this simple quote convention you quoted? 3) Why did you use double quotes if you quoted the single quote convention?
– Woss