Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Unexpected end of file

$
0
0

I have this very simple lines of code:

<!DOCTYPE html>
<html>
<head>
<title>
Chapter 5 Strings 
</title>
</head>
<body>
    <a href="index.php">Back home</a><br><br>
    <?php
    $mytext = <<<END_TEXT
            
            This is just a bunch of text I will write here so we can test a couple of things with text.
            I will add a few lines just so we have some.
            
            END_TEXT;
      
?>
</body>
</html>

So I am getting this error  Parse error: syntax error, unexpected end of file and I would like to know why as the syntax is correct


Viewing all articles
Browse latest Browse all 13200

Trending Articles