Unexpected $end Parse Error in PHP

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


17 points

Why am I receiving an unexpected $end parse error on the last line of my code?



15 points

if you're experiencing this type of parse error, it is almost ALWAYS because of a missing closing brace or quote, making the script think it should still be running.

check your braces and quotes carefully, making sure you've closed every set you've opened.

AbarieFar's picture
Created by AbarieFar

Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.