Parse error: syntax error, unexpected $end

Discussion in 'PHP' started by Nuzhser, Jun 30, 2010.

  1. #1
    I have not this variable in a script. What is the reason of error?
    Parse error: syntax error, unexpected $end
     
    Nuzhser, Jun 30, 2010 IP
  2. imperialDirectory

    imperialDirectory Peon

    Messages:
    395
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    missing a closing } maybe?
     
    imperialDirectory, Jun 30, 2010 IP
  3. Nuzhser

    Nuzhser Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thank you it is
     
    Nuzhser, Jun 30, 2010 IP
  4. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #4
    A good idea is to first format your code using a php formatter/beautifier, and then open the code within a code editor (such as notepad++), and let the syntax highlighting do the work for you
     
    danx10, Jun 30, 2010 IP