Jump to content
Fórum Script Brasil

Question

Boa tarde pessoal,

Estou iniciando em php e descobri que há um jeito diferente de exibir html no browser.  Seria mais ou menos assim:
 

<?php $str = <<< EOF

HELLO

EOF; echo $str; ?>

 

Ta dando o seguinte erro: 
Parse error: syntax error, unexpected end of file in /home/carlos001/public_html/cursophp/experimentos/html.php on line 7

Alguém sabe dizer porque?

 

Obrigada.

 

Link to post
Share on other sites

5 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Cloud Computing


  • Forum Statistics

    • Total Topics
      149422
    • Total Posts
      645925
×
×
  • Create New...